fix saving WCT crafting matrix

closes https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/9293
This commit is contained in:
repo_alt committed 2022-02-28 21:33:59 +03:00
1 parent f0978c8e00
commit b8ecbbb567
2 files changed
+6 -8

No files matched your search

@@ -163,6 +163,9 @@ public class WCTInventoryCrafting extends AppEngInternalInventory {
if (this.getTileEntity() != null && this.eventsEnabled()) {
this.getTileEntity().onChangeInventory(this, slotIndex, InvOperation.markDirty, null, null);
}
if (getStackInSlot(slotIndex) != null && getStackInSlot(slotIndex).stackSize == 0)
stackList[slotIndex] = null;
writeNBT(invItem.getTagCompound());
}
public void markDirty() {