Fixup for 1.8.8.

This commit is contained in:
cpw 2015-11-23 00:34:34 -05:00
parent 2b67783cef
commit aad2b93dc4
3 changed files with 9 additions and 8 deletions

View File

@ -34,8 +34,9 @@ archivesBaseName = "ironchest"
// Setup the forge minecraft plugin data. Specify the preferred forge/minecraft version here // Setup the forge minecraft plugin data. Specify the preferred forge/minecraft version here
minecraft { minecraft {
version = "1.8.8-11.14.4.1575-1.8.8" version = "1.8.8-11.14.4.1576-1.8.8"
mappings = "snapshot_20150129" mappings = "snapshot_20151122"
runDir = "run"
} }
// This wrangles the resources for the jar files- stuff like textures and languages // This wrangles the resources for the jar files- stuff like textures and languages

View File

@ -13,12 +13,12 @@ public class IronChestAIOcelotSit extends EntityAIOcelotSit
} }
@Override @Override
protected boolean func_179488_a(World world, BlockPos pos) protected boolean shouldMoveTo(World world, BlockPos pos)
{ {
if (world.getBlockState(pos).getBlock() == IronChest.ironChestBlock) if (world.getBlockState(pos).getBlock() == IronChest.ironChestBlock)
{ {
return true; return true;
} }
return super.func_179488_a(world, pos); return super.shouldMoveTo(world, pos);
} }
} }

View File

@ -25,13 +25,13 @@ import net.minecraft.nbt.NBTTagList;
import net.minecraft.network.NetworkManager; import net.minecraft.network.NetworkManager;
import net.minecraft.network.Packet; import net.minecraft.network.Packet;
import net.minecraft.network.play.server.S35PacketUpdateTileEntity; import net.minecraft.network.play.server.S35PacketUpdateTileEntity;
import net.minecraft.server.gui.IUpdatePlayerListBox;
import net.minecraft.tileentity.TileEntityLockable; import net.minecraft.tileentity.TileEntityLockable;
import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumFacing;
import net.minecraft.util.ITickable;
import net.minecraftforge.common.util.Constants; 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; private int ticksSinceSync = -1;
public float prevLidAngle; public float prevLidAngle;
@ -221,7 +221,7 @@ public class TileEntityIronChest extends TileEntityLockable implements IUpdatePl
} }
@Override @Override
public String getName() public String getCommandSenderName()
{ {
return this.hasCustomName() ? this.customName : type.name(); return this.hasCustomName() ? this.customName : type.name();
} }