This might fix the crashes that happen on death.
This commit is contained in:
parent
4d145cd90b
commit
efd5046037
|
@ -7,18 +7,19 @@ import net.minecraft.world.World;
|
||||||
|
|
||||||
public class IronChestAIOcelotSit extends EntityAIOcelotSit
|
public class IronChestAIOcelotSit extends EntityAIOcelotSit
|
||||||
{
|
{
|
||||||
public IronChestAIOcelotSit(EntityOcelot par1EntityOcelot, float par2)
|
public IronChestAIOcelotSit(EntityOcelot ocelotIn, float speedIn)
|
||||||
{
|
{
|
||||||
super(par1EntityOcelot, par2);
|
super(ocelotIn, speedIn);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean shouldMoveTo(World world, BlockPos pos)
|
protected boolean shouldMoveTo(World worldIn, BlockPos pos)
|
||||||
{
|
{
|
||||||
if (world.getBlockState(pos).getBlock() == IronChest.ironChestBlock)
|
if (worldIn.getBlockState(pos).getBlock() == IronChest.ironChestBlock)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return super.shouldMoveTo(world, pos);
|
|
||||||
|
return super.shouldMoveTo(worldIn, pos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -90,7 +90,7 @@ public class TileEntityIronChest extends TileEntityLockable implements ITickable
|
||||||
|
|
||||||
public IronChestType getType()
|
public IronChestType getType()
|
||||||
{
|
{
|
||||||
IronChestType type = IronChestType.WOOD;
|
IronChestType type = IronChestType.IRON;
|
||||||
|
|
||||||
if (this.hasWorldObj())
|
if (this.hasWorldObj())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue