fix random crash

This commit is contained in:
Leijurv 2018-12-03 21:52:13 -08:00
parent f4161ed61c
commit 16aee33bdf
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -62,6 +62,7 @@ public class ContainerMemory implements IContainerMemory {
RememberedInventory rem = new RememberedInventory(); RememberedInventory rem = new RememberedInventory();
rem.items.addAll(readItemStacks(in)); rem.items.addAll(readItemStacks(in));
rem.size = rem.items.size(); rem.size = rem.items.size();
rem.windowId = -1;
if (rem.items.isEmpty()) { if (rem.items.isEmpty()) {
continue; // this only happens if the list has no elements, not if the list has elements that are all empty item stacks continue; // this only happens if the list has no elements, not if the list has elements that are all empty item stacks
} }