Fix wrong farmland culling shape in <= 1.9.3

Closes https://github.com/ViaVersion/ViaFabricPlus/issues/631
This commit is contained in:
FlorianMichael 2024-11-25 21:20:30 +01:00
parent 9e7260a152
commit fd8fcaf859
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126

View File

@ -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);