This commit is contained in:
GlodBlock committed 2023-02-05 01:31:27 +08:00
1 parent 6edad9fae0
commit f1c11fcd06
2 files changed
+10 -3

No files matched your search

@@ -19,6 +19,15 @@ public class ItemBiggerAppEngInventory extends BiggerAppEngInventory {
@Override
public void markDirty() {
boolean isCraft = Platform.openNbtData(is).getBoolean("craftingMode");
if (isCraft) {
for (int x = 0; x < this.getSizeInventory(); x++) {
final ItemStack is = this.getStackInSlot(x);
if (is != null) {
is.stackSize = 1;
}
}
}
this.writeToNBT(Platform.openNbtData(is), this.name);
}
@@ -169,9 +169,7 @@ public class WirelessPatternTerminalInventory extends MEMonitorHandler<IAEItemSt
@Override
public void onChangeInventory(IInventory inv, int slot, InvOperation mc, ItemStack removedStack,
ItemStack newStack) {
if (inv == this.crafting) {
this.fixCraftingRecipes();
}
// NO-OP
}
private void fixCraftingRecipes() {