mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 00:38:35 +01:00
Merge pull request #1345 from jammehcow/bugfix/1332
Fix bounding box NPE when placing worm item
This commit is contained in:
commit
e0c3024400
1 changed files with 2 additions and 1 deletions
|
@ -21,6 +21,7 @@ import net.minecraft.block.IGrowable;
|
||||||
import net.minecraft.block.state.IBlockState;
|
import net.minecraft.block.state.IBlockState;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
|
import net.minecraft.util.math.AxisAlignedBB;
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraftforge.common.IPlantable;
|
import net.minecraftforge.common.IPlantable;
|
||||||
|
@ -31,7 +32,7 @@ public class EntityWorm extends Entity {
|
||||||
|
|
||||||
public EntityWorm(World world) {
|
public EntityWorm(World world) {
|
||||||
super(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) {
|
public static boolean canWormify(World world, BlockPos pos, IBlockState state) {
|
||||||
|
|
Loading…
Reference in a new issue