This might fix the crashes that happen on death.

This commit is contained in:
alexbegt 2016-06-13 19:06:32 -04:00
parent 4d145cd90b
commit efd5046037
2 changed files with 7 additions and 6 deletions

View File

@ -7,18 +7,19 @@ import net.minecraft.world.World;
public class IronChestAIOcelotSit extends EntityAIOcelotSit
{
public IronChestAIOcelotSit(EntityOcelot par1EntityOcelot, float par2)
public IronChestAIOcelotSit(EntityOcelot ocelotIn, float speedIn)
{
super(par1EntityOcelot, par2);
super(ocelotIn, speedIn);
}
@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 super.shouldMoveTo(world, pos);
return super.shouldMoveTo(worldIn, pos);
}
}

View File

@ -90,7 +90,7 @@ public class TileEntityIronChest extends TileEntityLockable implements ITickable
public IronChestType getType()
{
IronChestType type = IronChestType.WOOD;
IronChestType type = IronChestType.IRON;
if (this.hasWorldObj())
{