Fixed Exporter not exporting anything when using a Stack Upgrade and there isn't space for 64 items in the inventory. Fixes #2128
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
### 1.8.3
|
||||
- Added a new experimental autocrafting engine that's enabled by default. This should improve autocrafting performance (Darkere)
|
||||
- Wireless Transmitters can now be placed on any block and in any direction (raoulvdberge)
|
||||
- Fixed Exporter not exporting anything when using a Stack Upgrade and there isn't space for 64 items in the inventory (raoulvdberge)
|
||||
|
||||
### 1.8.2
|
||||
- Add Refined Storage silicon to forge:silicon tag for mod compatibility (jeremiahwinsley)
|
||||
|
@@ -85,12 +85,18 @@ public class ExporterNetworkNode extends NetworkNode implements IComparable, ITy
|
||||
if (upgrades.hasUpgrade(UpgradeItem.Type.CRAFTING)) {
|
||||
network.getCraftingManager().request(new SlottedCraftingRequest(this, filterSlot), slot, stackSize);
|
||||
}
|
||||
} else if (ItemHandlerHelper.insertItem(handler, took, true).isEmpty()) {
|
||||
took = network.extractItem(slot, Math.min(slot.getMaxStackSize(), stackSize), compare, Action.PERFORM);
|
||||
} else {
|
||||
ItemStack remainder = ItemHandlerHelper.insertItem(handler, took, true);
|
||||
|
||||
int correctedStackSize = took.getCount() - remainder.getCount();
|
||||
|
||||
if (correctedStackSize > 0) {
|
||||
took = network.extractItem(slot, correctedStackSize, compare, Action.PERFORM);
|
||||
|
||||
ItemHandlerHelper.insertItem(handler, took, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
filterSlot++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user