Fix crash with ext storage, fixes #571
This commit is contained in:
@@ -65,6 +65,7 @@ public abstract class ItemStorageExternal implements IItemStorage {
|
|||||||
this.cache = newStacks;
|
this.cache = newStacks;
|
||||||
|
|
||||||
for (ItemStack change : changes) {
|
for (ItemStack change : changes) {
|
||||||
|
if (change != null) {
|
||||||
if (change.stackSize > 0) {
|
if (change.stackSize > 0) {
|
||||||
network.getItemStorageCache().add(change, false);
|
network.getItemStorageCache().add(change, false);
|
||||||
} else {
|
} else {
|
||||||
@@ -73,6 +74,7 @@ public abstract class ItemStorageExternal implements IItemStorage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void updateForced() {
|
public void updateForced() {
|
||||||
this.cache = getStacks();
|
this.cache = getStacks();
|
||||||
|
|||||||
Reference in New Issue
Block a user