Fixed #345 - Crate packets in multiplayer

This commit is contained in:
Calclavia 2014-03-02 18:29:23 +08:00
parent c4122f52f9
commit d703676ee8

View file

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