Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fix for MixinTrackBlockOutline #973

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
177 commits
Select commit Hold shift + click to select a range
4b58101
1.19
AlphaMode Nov 7, 2022
6c7e393
Merge branch '1.18.x/main' into 1.19.2
AlphaMode Nov 30, 2022
a925af5
update the 1.19.2
AlphaMode Nov 30, 2022
6a9f9b5
Merge remote-tracking branch 'upstream/1.18.x/main' into 1.19.2
AlphaMode Jan 6, 2023
5246271
Upstream from 1.18.2
AlphaMode Jan 6, 2023
aa79663
Merge remote-tracking branch 'upstream/1.18.x/main' into 1.19.2
AlphaMode Jan 25, 2023
8145558
Upstream from 1.18.2
AlphaMode Feb 19, 2023
4d09636
Merge remote-tracking branch 'upstream/1.18.x/main' into 1.19.2
AlphaMode Feb 19, 2023
343e4ba
Upstream from 1.18.2
AlphaMode Feb 19, 2023
c25cc3b
Fix compile issues with forge
AlphaMode Feb 19, 2023
ce123cc
Update base name to valkyrienskies-119
AlphaMode Feb 19, 2023
080e37b
Merge pull request #300 from AlphaMode/1.19.2
Rubydesic Feb 27, 2023
6b810ca
update version number, jvm args
Rubydesic Mar 1, 2023
b7ee622
ci: update playtest webhook
Rubydesic Mar 1, 2023
08fd938
Got forge to launch (rendering is broken though)
Jun 4, 2023
b06745b
Fixed ship blocks not rendering
Jun 4, 2023
a16a442
Fixed ship block damage not rendering
Jun 4, 2023
1ec2660
Fixed block interactions in Fabric
Jun 4, 2023
47d3a7e
Merge from 1.18.x/main + fixes (still not fully functional)
Jun 4, 2023
2a13a74
Fixed commands
Jun 4, 2023
325bafd
Updated vs-core
Jun 4, 2023
beab12e
Run test server job on 1.19.2
Jun 4, 2023
82acff3
Fixed forge
Jun 4, 2023
09efe8f
Don't shade Guava
Jun 5, 2023
3558977
Empty commit to retry actions
Jun 5, 2023
d43a691
Fixed cruise control keybind not working on fabric
Jun 5, 2023
e13b8ab
Fix forge server not launching
Jun 5, 2023
ceaa7cb
Fixed lava not working on forge
Jun 5, 2023
8a7faf2
Fixed compatibility with Cull Leaves mod
Jun 5, 2023
cc3901a
Fixed fabric failing to launch
Jun 9, 2023
fb44adc
require MC 1.19.2
Rubydesic Jun 9, 2023
de95b2c
bump version
Rubydesic Jun 9, 2023
af75aac
warn on broken big cannons mixin
Rubydesic Jun 9, 2023
2ad8817
bump version
Rubydesic Jun 9, 2023
9175524
Initial work on 1.20
Jun 13, 2023
431dbf0
Well it compiles
Jun 13, 2023
9a1927b
Got Fabric working (mostly)
Jun 13, 2023
d9bfc0e
Got Forge working (mostly)
Jun 13, 2023
80c8e1f
Fixed ship bounding boxes not rendering correctly
Jun 13, 2023
564812f
Removed dead code
Jun 13, 2023
555b6f2
Run GH on 1.20/main branch
Jun 13, 2023
baf2e17
Added VS Creative Tab
Jun 15, 2023
a866457
Updated to 1.20.1
Jun 23, 2023
414eee9
Empty commit to retrigger actions
Jun 23, 2023
709204c
Re-enabled ModMenu support
Jun 23, 2023
0027f43
Updated cloth-config to 11.0.99
Jun 23, 2023
c9e7ee4
Fixed vs2 mod menu not working in Forge
Jun 23, 2023
5d00b7e
Don't export joml module with forge
Jun 23, 2023
476bc3d
Fixed shipyard_entities.MixinEntitySection
Jun 23, 2023
6b345ea
Bump version to 2.3.0-beta.2
Jun 29, 2023
5fc9af4
Disabled SwimNodeEvaluatorMixin
Jun 29, 2023
0dd02e1
Fixed MixinFlowingFluid
Jun 29, 2023
6d82054
Bump version to 2.3.0-beta.3
Jun 29, 2023
754bc4f
Fixed rubidium not working
Jul 14, 2023
0c2b0e6
Empty commit to rerun actions
Jul 14, 2023
ab3fa08
Empty commit to rerun actions again
Jul 14, 2023
50c9848
Empty commit to rerun actions again again
Jul 14, 2023
6fe9b16
Empty commit to rerun actions again again again
Jul 14, 2023
3392afc
Empty commit to rerun actions again again again again
Jul 14, 2023
afbc253
Empty commit to rerun actions again again again again again
Jul 15, 2023
c865b62
Fixed ship bounding boxes flickering on client
Jul 15, 2023
9480a7c
Removed redundant function
Jul 15, 2023
0ecc997
Bumped version
Jul 15, 2023
7787492
Updated architectury plugin and loom to latest
Jul 15, 2023
9b64fd4
Added create to workspace
Jul 18, 2023
74841fa
Got create rendering working in Fabric and Forge
Jul 18, 2023
2263318
Fixed forge creative tab
Jul 18, 2023
2737291
Gradle smh
Jul 19, 2023
df62462
Gradle smh my head
Jul 19, 2023
5ed97d3
Gradle smh my head x3
Jul 19, 2023
b6ba216
Merge incoming changes from 1.18.x/main
Jul 19, 2023
c4d068c
Fix merge conflicts
Jul 19, 2023
0001c12
Merge remote-tracking branch 'origin/1.19.2/main' into 1.20.1/main
Jul 19, 2023
75d0ef1
Moved vs2 maven to bottom
Jul 20, 2023
b2de01d
Updated version to 2.2.0-beta.4
Jul 20, 2023
2e2d63a
Updated version to 2.3.0-beta.5
Jul 20, 2023
b3555ab
add breaks sodium 0.5.0 to fabric.mod.json
Rubydesic Sep 5, 2023
b794c55
s
mrsterner Nov 16, 2023
14cedf2
1.19.2 port
mrsterner Nov 16, 2023
79b7df2
1.19.2 port
mrsterner Nov 16, 2023
dc3851c
1.19.2 port forge also works now
mrsterner Nov 16, 2023
5f84102
1.19.2 eh somehow this doesnt work anymore
mrsterner Nov 16, 2023
5c994e5
1.19.2 there we go, both fab and forg seems to work
mrsterner Nov 16, 2023
4c71fdb
links to deps
mrsterner Nov 16, 2023
c5aeb87
forgot to initialize items, oh whel ill pR this anyway
mrsterner Nov 16, 2023
17ee0c9
items actually init
mrsterner Nov 16, 2023
47d4fcc
clokwork thingy
mrsterner Nov 16, 2023
3e440e1
clockwork thingy
mrsterner Nov 16, 2023
2c49c70
clockwork thingy
mrsterner Nov 17, 2023
b6d2101
Merge remote-tracking branch 'origin/1.19.2/main' into 1.19.2/update
mrsterner Nov 17, 2023
21ee564
merge conflict misses
mrsterner Nov 17, 2023
f491e70
Merge remote-tracking branch 'origin/1.20.1/main' into 1.20.1/update
mrsterner Nov 17, 2023
f027d53
merge conflict misses
mrsterner Nov 17, 2023
b55add7
added missing mixins
mrsterner Nov 17, 2023
5766686
fix cc
mrsterner Nov 17, 2023
8171a8a
your shit together fabric
mrsterner Nov 17, 2023
40c4243
get out of here joml
mrsterner Nov 17, 2023
6f85423
get out of here joml
mrsterner Nov 17, 2023
f998b17
jk get back in here joml
mrsterner Nov 17, 2023
cc41f27
im become death destroyer of joml
mrsterner Nov 17, 2023
b370b41
Merge pull request #624 from mrsterner/1.19.2/update
StewStrong Nov 19, 2023
3fbc598
Merge branch '1.18.x/main' into 1.19.2/update
mrsterner Nov 20, 2023
546f1d1
Merge branch '1.19.2/update' into 1.20.1/update
mrsterner Nov 20, 2023
83894b9
im become death destroyer of joml
mrsterner Nov 20, 2023
68a8929
Merge pull request #625 from mrsterner/1.20.1/update
StewStrong Nov 27, 2023
c2e8c77
fixed create valuebox rendering on ships (#637)
mrsterner Nov 30, 2023
be944c1
1.20.1/main/fixed create valuebox rendering on ships (#638)
mrsterner Nov 30, 2023
4a0b4b3
Moved vs maven to the bottom to fix gradle not working
StewStrong Dec 23, 2023
a3667d0
Merged changes from 1.18.x/main
StewStrong Dec 23, 2023
39b8d01
Changed version to 2.1.2-beta.1
StewStrong Dec 23, 2023
cc6e5f8
Merged changes from 1.18.x
StewStrong Dec 25, 2023
a04911c
Merged changes from 1.18.x
StewStrong Dec 28, 2023
cf26261
added a null check and fixed missing parenthesis (#651)
mrsterner Dec 30, 2023
cb72d0f
loot container dupe fix (#668)
mrsterner Dec 30, 2023
02c6c71
loot container dupe fix (#669)
mrsterner Dec 30, 2023
eace2ef
Increment version
StewStrong Dec 30, 2023
474c87a
Merged changes from 1.19.2/main
StewStrong Dec 31, 2023
3c80849
Fixed ValkyrienSkiesMod.PHYSICS_ENTITY_CREATOR_ITEM not being initial…
StewStrong Dec 31, 2023
6ba8a8b
Fixed forge not working
StewStrong Dec 31, 2023
72bd3df
Removed forge tags from build.gradle
StewStrong Dec 31, 2023
876f5b5
Disabled indium in dev environment
StewStrong Dec 31, 2023
93dc01c
Updated cloth config on forge
StewStrong Dec 31, 2023
151ecf5
Fixed creative tab name
StewStrong Jan 1, 2024
a8a4822
Fixed forge block reach being too small
StewStrong Jan 1, 2024
a52f38b
Fixed fabric server not working
StewStrong Jan 1, 2024
39085d5
Increment version
StewStrong Jan 1, 2024
5eef901
Add credits to FluffyJenkins for Create compat
Rubydesic Jan 5, 2024
21efe38
Add credits to FluffyJenkins for Create compat
Rubydesic Jan 5, 2024
0b8f5b6
Move ValueBox mixin to client (#682)
Rubydesic Jan 29, 2024
daf1231
Move ValueBox mixin to client (#683)
Rubydesic Jan 29, 2024
7b60936
Create Compat(1.19.2): Fixed track outlines and picking (#693)
FluffyJenkins Jan 29, 2024
93b62e4
Create Compat(1.20.1): Fixed track outlines and picking (#694)
FluffyJenkins Jan 29, 2024
4504235
Wierd, the errors were not showing in PR?
ewoudje Jan 29, 2024
97bf648
Create Compat(1.19.2): Removed old file causing crashes/renamed funct…
FluffyJenkins Feb 18, 2024
9ed2dde
Create Compat(1.20.1): Removed old file causing crashes/renamed funct…
FluffyJenkins Feb 18, 2024
ab16a44
sodium 0.5 support; bump version to 2.3.0-beta.5 (#778)
Rubydesic Mar 26, 2024
d9e0db7
Fixed patch f crash and added some support for Create utilities (#743)
mrsterner Mar 30, 2024
fcae3be
fix crash with Sodium and Litematica (#819)
pama1234 Apr 22, 2024
682a6e8
Prevent shading of commons-lang3 (#798)
fionera May 3, 2024
7ce55e2
initial work on api
Rubydesic May 24, 2024
43668c8
initial work on api
Rubydesic May 25, 2024
bcda04a
compat: integrated dynamics (#851)
Rubydesic May 26, 2024
70461ea
housekeeping: update api
Rubydesic May 26, 2024
c819c5c
Merge branch '1.20.1/new-api' into 1.20.1/main
Rubydesic May 26, 2024
71078a6
fix: fabric compile errors; update vs-core
Rubydesic May 28, 2024
6911bbe
fix: errors with latest version of vs-core
Rubydesic May 28, 2024
2e6723d
Fix TFC compatibility issue (#833)
Dokueki Jun 29, 2024
c06ad13
Remove DimensionId from getIntersecting calls, update vscore
ThePlasticPotato Jun 30, 2024
2a68254
forgor properties
ThePlasticPotato Jun 30, 2024
e21b528
fix: nvm, i cant read hash numbers
ThePlasticPotato Jun 30, 2024
156c780
weird compiler error
ThePlasticPotato Jun 30, 2024
a934806
Make mixin more sane for better compatibility
ewoudje Jul 3, 2024
e5651dd
Fix MixinTrackBlockOutline (#921)
xiewuzhiying Jul 28, 2024
8142bb8
Fix #486 - when you log off on a ship and it moves, you should log on…
m-doescode Aug 15, 2024
ad53ee3
Fix compatibility with Pehkui player scale (#927)
Coffee-Maker Aug 16, 2024
3696741
Fix wing position on world reload (#945)
Endalion Aug 22, 2024
a9ed052
Increment version
StewStrong Sep 7, 2024
17a8173
fix teleport command can't teleport ships between two dimensions. (#908)
xiewuzhiying Sep 23, 2024
0834473
EMF Compatibility (#958)
alex-s168 Sep 23, 2024
52443a1
Merge from 1.18.x/main
StewStrong Sep 24, 2024
6be3966
Well the fabric work
StewStrong Sep 26, 2024
c372f07
Got forge working
StewStrong Sep 26, 2024
f27f754
Merge remote-tracking branch 'origin/1.18.x/main' into 1.19.2/main
StewStrong Sep 27, 2024
6d4802c
Initial merge, but theres errors
StewStrong Sep 27, 2024
b03bf63
Ok it builds now, but needs manual testing
StewStrong Sep 27, 2024
8d1bb40
It do run now tho :running:
StewStrong Sep 27, 2024
edf7675
Re-enabled Weather2Compat
StewStrong Sep 27, 2024
ffeeee6
Delete common/src/main/kotlin/org/valkyrienskies/mod/api/VsAPI.kt
StewStrong Sep 27, 2024
b48dab2
Delete common/src/main/kotlin/org/valkyrienskies/mod/api_impl/events/…
StewStrong Sep 27, 2024
fe1b77d
Made EMF and ETF compileOnly so that servers can run
StewStrong Sep 27, 2024
5beb174
Twilight Forest compatibility (#963)
Ictoan42 Sep 27, 2024
875c06a
bump version
Rubydesic May 28, 2024
8be7800
Add Immersive Portals compatibility
Rubydesic Sep 28, 2024
500230d
Fix Sinytra Connector Extras
Rubydesic Sep 28, 2024
ca9fc89
Remove duplicated CurseMaven repo
Rubydesic Sep 28, 2024
a81efdf
a (#971)
alex-s168 Sep 28, 2024
14fe81b
small fix
xiewuzhiying Sep 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:
- discord/status:
success_message: ${DISCORD_MSG}
success_only: true
webhook: ${VS2_118_WEBHOOK}
webhook: ${VS2_1192_WEBHOOK}

# Invoke jobs via workflows
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push:
branches:
- '1.18.x/*'
- '1.19.2/*'
- '1.20/*'
- '1.20.1/*'
pull_request:
types: [ opened, synchronize, reopened ]
jobs:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ forge*changelog.txt

# Files generated for Fabric
/fabric/src/generated/
/.architectury-transformer/debug.log
34 changes: 13 additions & 21 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -87,22 +87,6 @@ subprojects {
} catch (UnknownDomainObjectException ignore) {}

mavenCentral()
maven {
url "https://cursemaven.com"
content {
includeModule "curse.maven", "kotlinforforge-351264"
}
}
maven {
name = "Valkyrien Skies Internal"
url = project.vs_maven_url ?: 'https://maven.valkyrienskies.org'
if (project.vs_maven_username && project.vs_maven_password) {
credentials {
username = project.vs_maven_username
password = project.vs_maven_password
}
}
}
if (!project.block_external_repositories) {
mavenLocal()
maven {
Expand All @@ -119,17 +103,25 @@ subprojects {
name = 'tterrag maven'
url = 'https://maven.tterrag.com/'
}
maven { url = "https://api.modrinth.com/maven" } // LazyDFU, Suggestion Tweaker
maven { url = "https://modmaven.dev/" } // Twilight Forest
maven { url = "https://api.modrinth.com/maven" } // LazyDFU, Suggestion Tweaker, Create Big Cannons
maven { url = "https://maven.shedaniel.me/" } // Cloth Config, REI
maven { url "https://maven.architectury.dev/" }
maven { url = "https://mvn.devos.one/snapshots/" } // Fabric Create, Porting Lib, Forge Tags, Milk Lib
maven { url = "https://mvn.devos.one/releases/" }
maven { url = "https://raw.githubusercontent.com/Fuzss/modresources/main/maven/" } // Forge Config API Port
maven { url = "https://maven.tterrag.com/" } // Registrate, Forge Create and Flywheel
maven { url = "https://maven.cafeteria.dev/releases" } // Fake Player API
maven { url = "https://maven.jamieswhiteshirt.com/libs-release" } // Reach Entity Attributes
maven {
url = "https://maven.realrobotix.me/createbigcannons/" // Create Big Cannons
content {
includeGroup "com.rbasamoyai"
maven { url = "https://jitpack.io"}
}
maven {
name = "Valkyrien Skies Internal"
url = project.vs_maven_url ?: 'https://maven.valkyrienskies.org'
if (project.vs_maven_username && project.vs_maven_password) {
credentials {
username = project.vs_maven_username
password = project.vs_maven_password
}
}
}
Expand Down
31 changes: 21 additions & 10 deletions common/build.gradle
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@

dependencies {
annotationProcessor(implementation("com.github.LlamaLad7:MixinExtras:0.1.1"))
implementation(annotationProcessor("io.github.llamalad7:mixinextras-common:0.2.0"))

compileOnly 'com.google.code.findbugs:jsr305:3.0.2'
// We depend on fabric loader here to use the fabric @Environment annotations
// Do NOT use other classes from fabric loader
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"

modApi("me.shedaniel.cloth:cloth-config:4.14.64")
modApi("me.shedaniel.cloth:cloth-config:${cloth_config_version}")

modCompileOnly("curse.maven:sodium-394468:3669187")
modCompileOnly("maven.modrinth:sodium:${sodium_version}")

// vs-core
implementation("org.valkyrienskies.core:impl:${rootProject.vs_core_version}") {
exclude module: "netty-buffer"
exclude module: "fastutil"
}

implementation("org.valkyrienskies.core:api:${rootProject.vs_core_version}")
implementation("org.valkyrienskies.core:api-game:${rootProject.vs_core_version}")
implementation("org.valkyrienskies.core:util:${rootProject.vs_core_version}")
Expand All @@ -26,20 +25,32 @@ dependencies {
modCompileOnly("curse.maven:ftb-teams-404468:4229138")
modCompileOnly("curse.maven:ftb-chunks-314906:4229120")

// Weather2 1.18
modCompileOnly("curse.maven:weather-storms-tornadoes-237746:4426524")
// EMF compat
modCompileOnly("curse.maven:entity-model-features-844662:5696901")
modCompileOnly("curse.maven:entity-texture-features-fabric-568563:5697084")

// Weather2 1.20.1
modCompileOnly("curse.maven:weather-storms-tornadoes-237746:5244118")

//Common create compat,
//We just use a version from a platform and hope the classes exist on both versions and mixins apply correctly
modCompileOnly("com.simibubi.create:create-fabric-${minecraft_version}:${create_fabric_version}")
{ exclude group: 'com.github.AlphaMode', module: 'fakeconfigtoml' }
modCompileOnly("net.fabricmc.fabric-api:fabric-api:${fabric_api_version}")
modCompileOnly("com.jozufozu.flywheel:flywheel-fabric-${minecraft_version}:${flywheel_version_fabric}")
modCompileOnly("io.github.fabricators_of_create:Porting-Lib:${port_lib_version}+${minecraft_version}")
modCompileOnly("com.rbasamoyai:createbigcannons-fabric-${minecraft_version}:${createbigcannons_version}")

//Bluemap fabric 1.18
modCompileOnly("curse.maven:bluemap-406463:4950063")
modCompileOnly("maven.modrinth:create-big-cannons:${createbigcannons_version}")

modCompileOnly("maven.modrinth:create-utilities:${create_utilities_version}")
modImplementation("teamreborn:energy:${energy_version}")
// modCompileOnly("io.github.fabricators_of_create:Porting-Lib:${port_lib_version}+${minecraft_version}")

//Bluemap fabric 1.20.1
modCompileOnly("curse.maven:bluemap-406463:5555756")

modCompileOnly("com.github.iPortalTeam.ImmersivePortalsMod:imm_ptl_core:${immptl_version}")
modCompileOnly("com.github.iPortalTeam.ImmersivePortalsMod:q_misc_util:${immptl_version}")
modCompileOnly("com.github.iPortalTeam.ImmersivePortalsMod:build:${immptl_version}")
}

architectury {
Expand Down
12 changes: 10 additions & 2 deletions common/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
port_lib_version=1.2.677-beta
port_lib_hash=cca931b
#https://mvn.devos.one/#/snapshots/io/github/fabricators_of_create/Porting-Lib/Porting-Lib
port_lib_version=2.1.1127+1.20
port_lib_modules = accessors,base,entity,extensions,fake_players,networking,obj_loader,tags,transfer,models,tool_actions,client_events,brewing

# https://modrinth.com/mod/cloth-config/version/8.3.103+fabric
cloth_config_version = 11.1.106

# https://modrinth.com/mod/sodium/versions
sodium_version = mc1.20.1-0.5.8
immptl_version=v3.3.9-mc1.20.1
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import java.util.Collections;
import java.util.Set;
import java.util.WeakHashMap;
import org.valkyrienskies.core.impl.hooks.VSEvents.ShipUnloadEventClient;
import org.valkyrienskies.mod.mixinducks.MixinBlockEntityInstanceManagerDuck;

public class FlywheelEvents {
static {
Expand All @@ -18,11 +16,12 @@ public class FlywheelEvents {
);

private static synchronized void registerEvents() {
ShipUnloadEventClient.Companion.on(event -> {
for (final InstanceWorld instanceWorld : weakLoadedInstanceWorlds) {
((MixinBlockEntityInstanceManagerDuck) instanceWorld.getBlockEntityInstanceManager()).vs$removeShipManager(event.getShip());
}
});
// TODO api fix
// ShipUnloadEventClient.Companion.on(event -> {
// for (final InstanceWorld instanceWorld : weakLoadedInstanceWorlds) {
// ((MixinBlockEntityInstanceManagerDuck) instanceWorld.getBlockEntityInstanceManager()).vs$removeShipManager(event.getShip());
// }
// });
}

public static void onInstanceWorldLoad(final InstanceWorld instanceWorld) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
package org.valkyrienskies.mod.compat;

import me.jellysquid.mods.sodium.client.render.SodiumWorldRenderer;
import me.jellysquid.mods.sodium.client.render.chunk.map.ChunkStatus;
import me.jellysquid.mods.sodium.client.render.chunk.map.ChunkTrackerHolder;
import net.minecraft.client.multiplayer.ClientLevel;
import org.valkyrienskies.mod.mixin.ValkyrienCommonMixinConfigPlugin;

public class SodiumCompat {

public static void onChunkAdded(final int x, final int z) {
public static void onChunkAdded(final ClientLevel level, final int x, final int z) {
if (ValkyrienCommonMixinConfigPlugin.getVSRenderer() == VSRenderer.SODIUM) {
SodiumWorldRenderer.instance().onChunkAdded(x, z);
ChunkTrackerHolder.get(level).onChunkStatusAdded(x, z, ChunkStatus.FLAG_HAS_BLOCK_DATA);
}
}

public static void onChunkRemoved(final int x, final int z) {
public static void onChunkRemoved(final ClientLevel level, final int x, final int z) {
if (ValkyrienCommonMixinConfigPlugin.getVSRenderer() == VSRenderer.SODIUM) {
SodiumWorldRenderer.instance().onChunkRemoved(x, z);
ChunkTrackerHolder.get(level).onChunkStatusRemoved(x, z, ChunkStatus.FLAG_HAS_BLOCK_DATA);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin;
import org.spongepowered.asm.mixin.extensibility.IMixinInfo;
import org.spongepowered.asm.service.MixinService;
import org.valkyrienskies.mod.compat.LoadedMods;
import org.valkyrienskies.mod.compat.VSRenderer;

/**
Expand Down Expand Up @@ -58,21 +59,34 @@ public String getRefMapperConfig() {

@Override
public boolean shouldApplyMixin(final String s, final String mixinClassName) {
final VSRenderer renderer = getVSRenderer();

if (mixinClassName.contains("org.valkyrienskies.mod.mixin.mod_compat.immersive_portals")) {
return LoadedMods.getImmersivePortals(); // Only load this mixin if immersive portals is present
}
if (
mixinClassName.equals("org.valkyrienskies.mod.mixin.client.world.MixinClientChunkCache") ||
mixinClassName.equals("org.valkyrienskies.mod.mixin.mod_compat.vanilla_renderer.MixinViewAreaVanilla")
) {
return !LoadedMods.getImmersivePortals(); // Only load this if immersive portals is NOT present
}

if (mixinClassName.contains("org.valkyrienskies.mod.mixin.mod_compat.sodium")) {
return getVSRenderer() == VSRenderer.SODIUM;
return renderer == VSRenderer.SODIUM;
}
if (mixinClassName.contains("org.valkyrienskies.mod.mixin.mod_compat.optifine_vanilla")) {
return getVSRenderer() != VSRenderer.SODIUM;
return renderer == VSRenderer.VANILLA || renderer == VSRenderer.OPTIFINE;
}
if (mixinClassName.contains("org.valkyrienskies.mod.mixin.mod_compat.vanilla_renderer")) {
return getVSRenderer() == VSRenderer.VANILLA;
return renderer == VSRenderer.VANILLA;
}
if (mixinClassName.contains("org.valkyrienskies.mod.mixin.mod_compat.optifine")) {
return getVSRenderer() == VSRenderer.OPTIFINE;
return renderer == VSRenderer.OPTIFINE;
}
if (mixinClassName.contains("org.valkyrienskies.mod.mixin.feature.render_pathfinding")) {
return PATH_FINDING_DEBUG;
}

if (mixinClassName.contains("org.valkyrienskies.mod.mixin.mod_compat.create.client.trackOutlines")) {
//interactive has its own track outline stuff so disable fixed version of VS2's track outline stuff
if (classExists("org.valkyrienskies.create_interactive.mixin.client.MixinTrackBlockOutline")) {
Expand All @@ -83,6 +97,13 @@ public boolean shouldApplyMixin(final String s, final String mixinClassName) {
}
}

// Only load this mixin when ETF is installed
if (mixinClassName.equals("org.valkyrienskies.mod.mixin.mod_compat.etf.MixinBlockEntity")) {
if (!classExists("traben.entity_texture_features.utils.ETFEntity")) {
return false;
}
}

return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
public class ValkyrienMixinErrorHandler implements IMixinErrorHandler {

private final Set<String> warnList = new HashSet<>(Arrays.asList(
"org.valkyrienskies.mod.mixin.feature.water_in_ships_entity.MixinEntity"
"org.valkyrienskies.mod.mixin.feature.water_in_ships_entity.MixinEntity",
"org.valkyrienskies.mod.mixin.mod_compat.create_big_cannons.MixinAbstractCannonProjectile",
"org.valkyrienskies.mod.mixin.mod_compat.create_big_cannons.MixinPitchOrientedContraptionEntity"
));

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@

@Mixin(ResourceKey.class)
public interface ResourceKeyAccessor {

/*
@Accessor("VALUES")
static Map<String, ResourceKey<?>> getValues() {
throw new AssertionError();
}
*/

@Accessor
ResourceLocation getRegistryName();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.valkyrienskies.mod.mixin.accessors.util.math;

import com.mojang.math.Matrix4f;
import org.joml.Matrix4f;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package org.valkyrienskies.mod.mixin.client;

import com.mojang.math.Quaternion;
import com.mojang.math.Vector3f;
import net.minecraft.client.Camera;
import net.minecraft.util.Mth;
import net.minecraft.world.entity.Entity;
Expand All @@ -16,8 +14,10 @@
import org.jetbrains.annotations.NotNull;
import org.joml.Quaterniond;
import org.joml.Quaterniondc;
import org.joml.Quaternionf;
import org.joml.Vector3d;
import org.joml.Vector3dc;
import org.joml.Vector3f;
import org.joml.primitives.AABBi;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
Expand All @@ -26,7 +26,6 @@
import org.valkyrienskies.core.api.ships.ClientShip;
import org.valkyrienskies.core.api.ships.properties.ShipTransform;
import org.valkyrienskies.mod.client.IVSCamera;
import org.valkyrienskies.mod.common.util.VectorConversionsMCKt;
import org.valkyrienskies.mod.common.world.RaycastUtilsKt;

@Mixin(Camera.class)
Expand All @@ -53,7 +52,7 @@ public abstract class MixinCamera implements IVSCamera {
private float yRot;
@Shadow
@Final
private Quaternion rotation;
private Quaternionf rotation;
@Shadow
private boolean detached;
@Shadow
Expand Down Expand Up @@ -119,13 +118,13 @@ private void setRotationWithShipTransform(final float yaw, final float pitch, fi
renderTransform.getShipCoordinatesToWorldCoordinatesRotation().mul(originalRotation, new Quaterniond());
this.xRot = pitch;
this.yRot = yaw;
VectorConversionsMCKt.set(this.rotation, newRotation);
this.rotation.set(newRotation);
this.forwards.set(0.0F, 0.0F, 1.0F);
this.forwards.transform(this.rotation);
this.rotation.transform(this.forwards);
this.up.set(0.0F, 1.0F, 0.0F);
this.up.transform(this.rotation);
this.rotation.transform(this.up);
this.left.set(1.0F, 0.0F, 0.0F);
this.left.transform(this.rotation);
this.rotation.transform(this.left);
}

/**
Expand Down
Loading
Loading