Fix crash with ext storage, fixes #571

This commit is contained in:
Raoul Van den Berge
2016-11-02 18:10:23 +01:00
parent 4e43778277
commit 9ffbcfee88

View File

@@ -65,6 +65,7 @@ public abstract class ItemStorageExternal implements IItemStorage {
this.cache = newStacks;
for (ItemStack change : changes) {
if (change != null) {
if (change.stackSize > 0) {
network.getItemStorageCache().add(change, false);
} else {
@@ -73,6 +74,7 @@ public abstract class ItemStorageExternal implements IItemStorage {
}
}
}
}
public void updateForced() {
this.cache = getStacks();