Made an attempt to fix Block Placer not rendering its inventory
This commit is contained in:
parent
2a29830a93
commit
ee72700954
2 changed files with 7 additions and 1 deletions
|
@ -334,7 +334,7 @@ class TileCrate extends TileInventory(Material.rock) with TPacketReceiver with I
|
|||
this.onInventoryChanged
|
||||
}
|
||||
|
||||
def onInventoryChanged
|
||||
override def onInventoryChanged
|
||||
{
|
||||
if (worldObj != null && !worldObj.isRemote) doUpdate = true
|
||||
}
|
||||
|
|
|
@ -159,6 +159,12 @@ public class TilePlacer extends TileInventory implements IRotatable, IPacketRece
|
|||
return new PacketTile(this, nbt);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onInventoryChanged()
|
||||
{
|
||||
sendPacket(getDescPacket());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void read(ByteBuf data, EntityPlayer player, PacketType type)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue