Fixes #1481: Updated cell itemcount when empty
This commit is contained in:
parent
d26caa5f8b
commit
465f9efbd5
|
@ -400,9 +400,9 @@ public class CellInventory implements ICellInventory
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.storedItems = (short) this.cellItems.size();
|
|
||||||
this.tagCompound.setShort( ITEM_TYPE_TAG, this.storedItems );
|
this.tagCompound.setShort( ITEM_TYPE_TAG, this.storedItems );
|
||||||
}
|
}
|
||||||
|
this.storedItems = (short) this.cellItems.size();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* if ( tagCount instanceof NBTTagInt ) ((NBTTagInt) tagCount).data = storedItemCount = itemCount; else
|
* if ( tagCount instanceof NBTTagInt ) ((NBTTagInt) tagCount).data = storedItemCount = itemCount; else
|
||||||
|
@ -413,9 +413,9 @@ public class CellInventory implements ICellInventory
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.storedItemCount = itemCount;
|
|
||||||
this.tagCompound.setInteger( ITEM_COUNT_TAG, itemCount );
|
this.tagCompound.setInteger( ITEM_COUNT_TAG, itemCount );
|
||||||
}
|
}
|
||||||
|
this.storedItemCount = itemCount;
|
||||||
|
|
||||||
// clean any old crusty stuff...
|
// clean any old crusty stuff...
|
||||||
for(; x < oldStoredItems && x < this.maxItemTypes; x++ )
|
for(; x < oldStoredItems && x < this.maxItemTypes; x++ )
|
||||||
|
|
Loading…
Reference in a new issue