you can't extract from write only, not read only

This commit is contained in:
way2muchnoise
2016-10-30 17:52:59 +01:00
parent e26e1dd815
commit 10e56a5b3d

View File

@@ -582,7 +582,7 @@ public class TileController extends TileBase implements INetworkMaster, IEnergyR
for (IItemStorage storage : this.itemStorage.getStorages()) { for (IItemStorage storage : this.itemStorage.getStorages()) {
ItemStack took = null; ItemStack took = null;
if (storage.getAccessType() != AccessType.READ) { if (storage.getAccessType() != AccessType.WRITE) {
took = storage.extractItem(stack, requested - received, flags); took = storage.extractItem(stack, requested - received, flags);
} }