Fixed a stupid error with items randomly disappearing out of containers

Closes #203

Ugh, why is this game such a mess?
This commit is contained in:
Ellpeck 2016-08-13 22:31:43 +02:00
parent 0ca678dae1
commit ba8fde49c2

View file

@ -157,7 +157,9 @@ public abstract class TileEntityBase extends TileEntity implements ITickable{
@Override @Override
public void onDataPacket(NetworkManager net, SPacketUpdateTileEntity pkt){ public void onDataPacket(NetworkManager net, SPacketUpdateTileEntity pkt){
if(pkt != null){ if(pkt != null){
this.receiveSyncCompound(pkt.getNbtCompound()); NBTTagCompound compound = pkt.getNbtCompound();
this.readFromNBT(compound);
this.receiveSyncCompound(compound);
} }
} }