From 2fcca318fd8a7da1c9a37a25d63be6d11bbbe1c1 Mon Sep 17 00:00:00 2001 From: James Upjohn Date: Sat, 7 Nov 2020 13:11:12 +1300 Subject: [PATCH] Pass zero-sized bounding box to EntityWorm#setEntityBoundingBox --- .../de/ellpeck/actuallyadditions/mod/entity/EntityWorm.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/entity/EntityWorm.java b/src/main/java/de/ellpeck/actuallyadditions/mod/entity/EntityWorm.java index 6e6e80e54..46adc1bdc 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/entity/EntityWorm.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/entity/EntityWorm.java @@ -21,6 +21,7 @@ import net.minecraft.block.IGrowable; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.Entity; import net.minecraft.nbt.NBTTagCompound; +import net.minecraft.util.math.AxisAlignedBB; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; import net.minecraftforge.common.IPlantable; @@ -31,7 +32,7 @@ public class EntityWorm extends Entity { public EntityWorm(World world) { super(world); - this.setEntityBoundingBox(null); + this.setEntityBoundingBox(new AxisAlignedBB(0, 0, 0, 0, 0, 0)); } public static boolean canWormify(World world, BlockPos pos, IBlockState state) {