Fixup for 1.8.8.
This commit is contained in:
parent
2b67783cef
commit
aad2b93dc4
|
@ -34,8 +34,9 @@ archivesBaseName = "ironchest"
|
|||
|
||||
// Setup the forge minecraft plugin data. Specify the preferred forge/minecraft version here
|
||||
minecraft {
|
||||
version = "1.8.8-11.14.4.1575-1.8.8"
|
||||
mappings = "snapshot_20150129"
|
||||
version = "1.8.8-11.14.4.1576-1.8.8"
|
||||
mappings = "snapshot_20151122"
|
||||
runDir = "run"
|
||||
}
|
||||
|
||||
// This wrangles the resources for the jar files- stuff like textures and languages
|
||||
|
|
|
@ -13,12 +13,12 @@ public class IronChestAIOcelotSit extends EntityAIOcelotSit
|
|||
}
|
||||
|
||||
@Override
|
||||
protected boolean func_179488_a(World world, BlockPos pos)
|
||||
protected boolean shouldMoveTo(World world, BlockPos pos)
|
||||
{
|
||||
if (world.getBlockState(pos).getBlock() == IronChest.ironChestBlock)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return super.func_179488_a(world, pos);
|
||||
return super.shouldMoveTo(world, pos);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,13 +25,13 @@ import net.minecraft.nbt.NBTTagList;
|
|||
import net.minecraft.network.NetworkManager;
|
||||
import net.minecraft.network.Packet;
|
||||
import net.minecraft.network.play.server.S35PacketUpdateTileEntity;
|
||||
import net.minecraft.server.gui.IUpdatePlayerListBox;
|
||||
import net.minecraft.tileentity.TileEntityLockable;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.util.EnumFacing;
|
||||
import net.minecraft.util.ITickable;
|
||||
import net.minecraftforge.common.util.Constants;
|
||||
|
||||
public class TileEntityIronChest extends TileEntityLockable implements IUpdatePlayerListBox, IInventory
|
||||
public class TileEntityIronChest extends TileEntityLockable implements ITickable, IInventory
|
||||
{
|
||||
private int ticksSinceSync = -1;
|
||||
public float prevLidAngle;
|
||||
|
@ -221,7 +221,7 @@ public class TileEntityIronChest extends TileEntityLockable implements IUpdatePl
|
|||
}
|
||||
|
||||
@Override
|
||||
public String getName()
|
||||
public String getCommandSenderName()
|
||||
{
|
||||
return this.hasCustomName() ? this.customName : type.name();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue