Fixed bin bug

This commit is contained in:
Aidan Brady 2013-12-15 14:19:16 -05:00
parent 953d4851fe
commit 5cd968f09c

View file

@ -228,7 +228,7 @@ public class TileEntityBin extends TileEntityBasicBlock implements ISidedInvento
nbtTags.setCompoundTag("topStack", topStack.writeToNBT(new NBTTagCompound()));
}
if(cacheCount > 0)
if(getItemCount() > 0)
{
nbtTags.setCompoundTag("itemType", itemType.writeToNBT(new NBTTagCompound()));
}
@ -370,6 +370,7 @@ public class TileEntityBin extends TileEntityBasicBlock implements ISidedInvento
if(!worldObj.isRemote)
{
MekanismUtils.saveChunk(this);
PacketHandler.sendPacket(Transmission.ALL_CLIENTS, new PacketTileEntity().setParams(Object3D.get(this), getNetworkedData(new ArrayList())));
prevCount = getItemCount();
sortStacks();