diff --git a/common/mekanism/common/tileentity/TileEntityBin.java b/common/mekanism/common/tileentity/TileEntityBin.java index ffc7b785b..c7fd5c0f7 100644 --- a/common/mekanism/common/tileentity/TileEntityBin.java +++ b/common/mekanism/common/tileentity/TileEntityBin.java @@ -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();