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

+3 -8
View File
@@ -3,13 +3,8 @@
dependencies {
compile("com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-70-GTNH:dev")
compile("com.github.GTNewHorizons:Baubles:1.0.1.14:dev")
compile("curse.maven:cofh-core-69162:2388751")
compileOnly("com.github.GTNewHorizons:NotEnoughItems:2.1.22-GTNH:dev") {
transitive = false
}
compileOnly("com.github.GTNewHorizons:EnderIO:2.3.1.27:dev") {
transitive = false
}
compile("com.github.GTNewHorizons:NotEnoughItems:2.2.6-GTNH:dev")
compile("com.github.GTNewHorizons:CodeChickenLib:1.1.5.3:dev")
compileOnly("com.github.GTNewHorizons:EnderIO:2.3.1.27:dev") { transitive = false }
}
@@ -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() {