wip interfaces stacksizes

This commit is contained in:
PrototypeTrousers
2022-10-12 04:48:02 -03:00
parent 9ac4ea4e6e
commit 2e9a5dc8ea
5 changed files with 24 additions and 16 deletions
@@ -184,7 +184,7 @@ public final class ContainerInterfaceConfigurationTerminal extends AEBaseContain
}
break;
case PLACE_SINGLE:
if (inSlot.getMaxStackSize() > inSlot.getCount()) {
if (inSlot.getCount() < inSlot.getMaxStackSize() * 8) {
inSlot.grow(1);
ItemHandlerUtil.setStackInSlot(theSlot, 0, inSlot);
}
@@ -299,6 +299,9 @@ public final class ContainerInterfaceConfigurationTerminal extends AEBaseContain
if (!is.isEmpty()) {
is.writeToNBT(itemNBT);
if (is.getCount() > is.getMaxStackSize()) {
itemNBT.setInteger("stackSize", is.getCount());
}
}
tag.setTag(Integer.toString(x + offset), itemNBT);