Fixed not being able to extract anything when connecting an External Storage to Storage Drawers
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user