Fixed issue where empy stacks show up in the system, fixes #1126, #1183 and #1188

This commit is contained in:
raoulvdberge
2017-04-25 21:02:44 +02:00
parent 3dc4f05bfe
commit 82b59fdfcd
2 changed files with 2 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
### 1.4.4
- Fixed Disk Manipulator crashing due to empty stack (raoulvdberge)
- Fixed issue where empty stacks show up in the system (raoulvdberge)
### 1.4.3
- Updated Forge to 2282 (raoulvdberge)

View File

@@ -34,7 +34,7 @@ public abstract class StorageItemExternal implements IStorage<ItemStack> {
// If we exceed the cache size, than that means this items is added
if (i >= cache.size()) {
if (actual != null) {
if (!actual.isEmpty()) {
network.getItemStorageCache().add(actual, actual.getCount(), false);
}