Interface NBT/Metadata check fix (updated) (#1646)

* fixes #1643

* Update CHANGELOG.md
This commit is contained in:
ineternet
2018-01-28 12:15:50 +01:00
committed by Raoul
parent 07628a5872
commit 01266716da
2 changed files with 2 additions and 1 deletions

View File

@@ -7,6 +7,7 @@
- Fixed 2 same stacks using capabilities without NBT tag not treated equal (raoulvdberge)
- Changed stack quantity of craftable items from 1 to 0 to fix Quantity Sorting (ineternet)
- Changed fluid stack amount to not display "0" anymore (ineternet)
- Fixed NBT/metadata check on exporting in an Interface (ineternet)
### 1.5.31
- Improved the "cannot craft! loop in processing..." error message (raoulvdberge)

View File

@@ -95,7 +95,7 @@ public class NetworkNodeInterface extends NetworkNode implements IComparable {
if (!got.isEmpty()) {
exportItems.setStackInSlot(i, StackUtils.nullToEmpty(network.insertItemTracked(got, got.getCount())));
}
} else if (!got.isEmpty() && !API.instance().getComparer().isEqualNoQuantity(wanted, got)) {
} else if (!got.isEmpty() && !API.instance().getComparer().isEqual(wanted, got, getCompare())) {
exportItems.setStackInSlot(i, StackUtils.nullToEmpty(network.insertItemTracked(got, got.getCount())));
} else {
int delta = got.isEmpty() ? wanted.getCount() : (wanted.getCount() - got.getCount());