From fd8fcaf85917ad05ceee02bdaab1f55844b4afea Mon Sep 17 00:00:00 2001 From: FlorianMichael Date: Mon, 25 Nov 2024 21:20:30 +0100 Subject: [PATCH] Fix wrong farmland culling shape in <= 1.9.3 Closes https://github.com/ViaVersion/ViaFabricPlus/issues/631 --- .../mixin/fixes/minecraft/block/MixinFarmlandBlock.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/florianmichael/viafabricplus/injection/mixin/fixes/minecraft/block/MixinFarmlandBlock.java b/src/main/java/de/florianmichael/viafabricplus/injection/mixin/fixes/minecraft/block/MixinFarmlandBlock.java index 1f78c735..bea05186 100644 --- a/src/main/java/de/florianmichael/viafabricplus/injection/mixin/fixes/minecraft/block/MixinFarmlandBlock.java +++ b/src/main/java/de/florianmichael/viafabricplus/injection/mixin/fixes/minecraft/block/MixinFarmlandBlock.java @@ -56,7 +56,7 @@ public abstract class MixinFarmlandBlock extends Block { @Override public VoxelShape getCullingShape(BlockState state) { - if (ProtocolTranslator.getTargetVersion().newerThan(ProtocolVersion.v1_9_3)) { + if (ProtocolTranslator.getTargetVersion().olderThanOrEqualTo(ProtocolVersion.v1_9_3)) { return SHAPE; } else { return super.getCullingShape(state);