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
@@ -527,7 +527,7 @@ public abstract class ContainerPatternEncoder extends ContainerMEMonitorable imp
if (!i.isEmpty()) {
i.writeToNBT(c);
if (i.getCount() > i.getMaxStackSize()) {
if (i.getCount() > Byte.MAX_VALUE) {
c.setInteger("stackSize", i.getCount());
}
}