Fixed possible rare dupe bug with Importer, fixes #1401
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
- Updated Forge to 2444 (MC 1.12.1) (raoulvdberge)
|
||||
- Added InventoryTweaks Grid sorting (cooliojazz)
|
||||
- Added CTM integration for Disk Manipulator (raoulvdberge)
|
||||
- Fixed possible rare dupe bug with Importer (raoulvdberge)
|
||||
|
||||
### 1.5.14
|
||||
- Updated Forge to 2426 (raoulvdberge)
|
||||
|
||||
@@ -80,9 +80,11 @@ public class NetworkNodeImporter extends NetworkNode implements IComparable, IFi
|
||||
ItemStack result = handler.extractItem(currentSlot, upgrades.getItemInteractCount(), true);
|
||||
|
||||
if (!result.isEmpty() && network.insertItem(result, result.getCount(), true) == null) {
|
||||
network.insertItemTracked(result, result.getCount());
|
||||
result = handler.extractItem(currentSlot, upgrades.getItemInteractCount(), false);
|
||||
|
||||
handler.extractItem(currentSlot, upgrades.getItemInteractCount(), false);
|
||||
if (!result.isEmpty()) {
|
||||
network.insertItemTracked(result, result.getCount());
|
||||
}
|
||||
} else {
|
||||
currentSlot++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user