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
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

View File

@ -5,7 +5,7 @@ import net.minecraft.entity.passive.EntityOcelot;
import net.minecraft.util.BlockPos;
import net.minecraft.world.World;
public class IronChestAIOcelotSit extends EntityAIOcelotSit
public class IronChestAIOcelotSit extends EntityAIOcelotSit
{
public IronChestAIOcelotSit(EntityOcelot par1EntityOcelot, float par2)
{
@ -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);
}
}

View File

@ -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();
}