Fixes #729 - "External storage attached to a Storage Drawers drawer controller ignores "extract only" setting"
This commit is contained in:
@@ -587,6 +587,10 @@ public class TileController extends TileBase implements INetworkMaster, IRedston
|
||||
int insertedExternally = 0;
|
||||
|
||||
for (IStorage<ItemStack> storage : this.itemStorage.getStorages()) {
|
||||
if (storage.getAccessType() == AccessType.EXTRACT) {
|
||||
continue;
|
||||
}
|
||||
|
||||
int storedPre = storage.getStored();
|
||||
|
||||
remainder = storage.insert(remainder, size, simulate);
|
||||
@@ -694,6 +698,10 @@ public class TileController extends TileBase implements INetworkMaster, IRedston
|
||||
int inserted = 0;
|
||||
|
||||
for (IStorage<FluidStack> storage : this.fluidStorage.getStorages()) {
|
||||
if (storage.getAccessType() == AccessType.EXTRACT) {
|
||||
continue;
|
||||
}
|
||||
|
||||
int storedPre = storage.getStored();
|
||||
|
||||
remainder = storage.insert(remainder, size, simulate);
|
||||
|
||||
Reference in New Issue
Block a user