diff --git a/gradle.properties b/gradle.properties index 33cc78eb7..f57a3d667 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,10 +3,10 @@ org.gradle.jvmargs=-Xmx8G org.gradle.parallel=true # Minecraft/Fabric -minecraft_version=1.20.3 -yarn_mappings=1.20.3+build.1 +minecraft_version=1.20.4 +yarn_mappings=1.20.4+build.1 loader_version=0.15.0 -fabric_api_version=0.91.1+1.20.3 +fabric_api_version=0.91.1+1.20.4 # Project Details mod_version=3.0.0-SNAPSHOT diff --git a/src/main/java/de/florianmichael/viafabricplus/injection/mixin/fixes/minecraft/network/MixinClientPlayNetworkHandler.java b/src/main/java/de/florianmichael/viafabricplus/injection/mixin/fixes/minecraft/network/MixinClientPlayNetworkHandler.java index 4069a9c45..6e5a64b45 100644 --- a/src/main/java/de/florianmichael/viafabricplus/injection/mixin/fixes/minecraft/network/MixinClientPlayNetworkHandler.java +++ b/src/main/java/de/florianmichael/viafabricplus/injection/mixin/fixes/minecraft/network/MixinClientPlayNetworkHandler.java @@ -160,10 +160,7 @@ private void cancelSmallChanges(Entity instance, double x, double y, double z, f @Inject(method = "onGameJoin", at = @At("RETURN")) private void sendAdditionalData(CallbackInfo ci) { - if (ProtocolHack.getTargetVersion().isOlderThanOrEqualTo(VersionEnum.r1_8)) { - this.onEntityStatus(new EntityStatusS2CPacket(this.client.player, (byte) 28)); // Op-level 4 - } - if (ProtocolHack.getTargetVersion().isOlderThan(VersionEnum.r1_12)) { + if (ProtocolHack.getTargetVersion().isOlderThanOrEqualTo(VersionEnum.r1_11_1to1_11_2)) { final List> recipes = new ArrayList<>(); final List> recipeInfos = Recipes1_11_2.getRecipes(); for (int i = 0; i < recipeInfos.size(); i++) { @@ -171,6 +168,9 @@ private void sendAdditionalData(CallbackInfo ci) { } this.onSynchronizeRecipes(new SynchronizeRecipesS2CPacket(recipes)); } + if (ProtocolHack.getTargetVersion().isOlderThanOrEqualTo(VersionEnum.r1_8)) { + this.onEntityStatus(new EntityStatusS2CPacket(this.client.player, (byte) 28)); // Op-level 4 + } } } diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 768b9ba7d..e32d4137f 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -50,7 +50,7 @@ "depends": { "fabricloader": ">=0.15.0", "fabric-api": ">=0.91.1+1.20.3", - "minecraft": "~1.20.3", + "minecraft": ">=1.20.3", "java": ">=17" }, "breaks": {