Fixed not being able to extract anything when connecting an External Storage to Storage Drawers

This commit is contained in:
raoulvdberge
2017-07-11 01:08:33 +02:00
parent f38aceddd4
commit 99b6c412c9
2 changed files with 3 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
### 1.5.9 ### 1.5.9
- Fixed crash relating to MCMP (raoulvdberge) - Fixed crash relating to MCMP (raoulvdberge)
- Fixed not being able to extract anything when connecting an External Storage to Storage Drawers (raoulvdberge)
### 1.5.8 ### 1.5.8
- Updated Forge to 2400 (raoulvdberge) - Updated Forge to 2400 (raoulvdberge)

View File

@@ -61,10 +61,10 @@ public class StorageItemItemRepository extends StorageItemExternal {
IItemRepository repository = getRepositoryFromSupplier(); IItemRepository repository = getRepositoryFromSupplier();
if (repository == null) { if (repository == null) {
return stack; return null;
} }
return repository.extractItem(stack, size, simulate, s -> API.instance().getComparer().isEqual(stack, s, flags)); return RSUtils.transformEmptyToNull(repository.extractItem(stack, size, simulate, s -> API.instance().getComparer().isEqual(stack, s, flags)));
} }
@Override @Override