Made an attempt to fix Block Placer not rendering its inventory

This commit is contained in:
Robert S 2014-09-09 22:04:35 -04:00
parent 2a29830a93
commit ee72700954
2 changed files with 7 additions and 1 deletions

View file

@ -334,7 +334,7 @@ class TileCrate extends TileInventory(Material.rock) with TPacketReceiver with I
this.onInventoryChanged this.onInventoryChanged
} }
def onInventoryChanged override def onInventoryChanged
{ {
if (worldObj != null && !worldObj.isRemote) doUpdate = true if (worldObj != null && !worldObj.isRemote) doUpdate = true
} }

View file

@ -159,6 +159,12 @@ public class TilePlacer extends TileInventory implements IRotatable, IPacketRece
return new PacketTile(this, nbt); return new PacketTile(this, nbt);
} }
@Override
public void onInventoryChanged()
{
sendPacket(getDescPacket());
}
@Override @Override
public void read(ByteBuf data, EntityPlayer player, PacketType type) public void read(ByteBuf data, EntityPlayer player, PacketType type)
{ {