fix items voiding under certain circumstances

This commit is contained in:
PrototypeTrousers
2022-11-22 19:04:42 -03:00
parent bd4f03652e
commit 225a4d5ab6
4 changed files with 15 additions and 3 deletions
@@ -311,7 +311,7 @@ public final class ContainerInterfaceConfigurationTerminal extends AEBaseContain
if (!is.isEmpty()) {
is.writeToNBT(itemNBT);
if (is.getCount() > is.getMaxStackSize()) {
if (is.getCount() > Byte.MAX_VALUE) {
itemNBT.setInteger("stackSize", is.getCount());
}
}