Fixed #345 - Crate packets in multiplayer
This commit is contained in:
parent
c4122f52f9
commit
d703676ee8
1 changed files with 2 additions and 5 deletions
|
@ -156,12 +156,9 @@ public class TileCrate extends TileExternalInventory implements IPacketReceiver,
|
||||||
{
|
{
|
||||||
super.onInventoryChanged();
|
super.onInventoryChanged();
|
||||||
|
|
||||||
if (this.worldObj != null)
|
if (worldObj != null && !worldObj.isRemote)
|
||||||
{
|
{
|
||||||
if (FMLCommonHandler.instance().getEffectiveSide() == Side.SERVER)
|
PacketHandler.sendPacketToClients(getDescriptionPacket(), this.worldObj);
|
||||||
{
|
|
||||||
PacketHandler.sendPacketToClients(this.getDescriptionPacket(), this.worldObj);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue