Fixes #729 - "External storage attached to a Storage Drawers drawer controller ignores "extract only" setting"
This commit is contained in:
		| @@ -9,6 +9,7 @@ | |||||||
| - Added configuration option to enable large fonts in Grid (raoulvdberge) | - Added configuration option to enable large fonts in Grid (raoulvdberge) | ||||||
| - Made Solderer tooltip less big (raoulvdberge) | - Made Solderer tooltip less big (raoulvdberge) | ||||||
| - Fixed bug with opening a network item with food in offhand (raoulvdberge) | - Fixed bug with opening a network item with food in offhand (raoulvdberge) | ||||||
|  | - Fixed not respecting "Extract only" option for storages (raoulvdberge) | ||||||
|  |  | ||||||
| ### 1.3.3 | ### 1.3.3 | ||||||
| - Updated Forge to 2188 (raoulvdberge) | - Updated Forge to 2188 (raoulvdberge) | ||||||
|   | |||||||
| @@ -587,6 +587,10 @@ public class TileController extends TileBase implements INetworkMaster, IRedston | |||||||
|         int insertedExternally = 0; |         int insertedExternally = 0; | ||||||
|  |  | ||||||
|         for (IStorage<ItemStack> storage : this.itemStorage.getStorages()) { |         for (IStorage<ItemStack> storage : this.itemStorage.getStorages()) { | ||||||
|  |             if (storage.getAccessType() == AccessType.EXTRACT) { | ||||||
|  |                 continue; | ||||||
|  |             } | ||||||
|  |  | ||||||
|             int storedPre = storage.getStored(); |             int storedPre = storage.getStored(); | ||||||
|  |  | ||||||
|             remainder = storage.insert(remainder, size, simulate); |             remainder = storage.insert(remainder, size, simulate); | ||||||
| @@ -694,6 +698,10 @@ public class TileController extends TileBase implements INetworkMaster, IRedston | |||||||
|         int inserted = 0; |         int inserted = 0; | ||||||
|  |  | ||||||
|         for (IStorage<FluidStack> storage : this.fluidStorage.getStorages()) { |         for (IStorage<FluidStack> storage : this.fluidStorage.getStorages()) { | ||||||
|  |             if (storage.getAccessType() == AccessType.EXTRACT) { | ||||||
|  |                 continue; | ||||||
|  |             } | ||||||
|  |  | ||||||
|             int storedPre = storage.getStored(); |             int storedPre = storage.getStored(); | ||||||
|  |  | ||||||
|             remainder = storage.insert(remainder, size, simulate); |             remainder = storage.insert(remainder, size, simulate); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Raoul Van den Berge
					Raoul Van den Berge