Fixed #1206 and #892 - "Refined Storage Dupe"

This commit is contained in:
raoulvdberge
2017-05-14 10:45:33 +02:00
parent b8836e9b2e
commit b3ca4360e8
2 changed files with 4 additions and 0 deletions

View File

@@ -10,6 +10,7 @@
- Fixed crash when updating storages (raoulvdberge)
- Fixed no tooltips for fluid filter slots (raoulvdberge)
- Fixed Disk Manipulator in fluid mode not showing fluids (raoulvdberge)
- Fixed dupe bug in the Interface (raoulvdberge)
- Removed ticking tile entities, every tile entity in RS is non-ticking now (raoulvdberge)
### 1.4.4

View File

@@ -3,6 +3,7 @@ package com.raoulvdberge.refinedstorage.apiimpl.network.node;
import com.raoulvdberge.refinedstorage.RS;
import com.raoulvdberge.refinedstorage.RSUtils;
import com.raoulvdberge.refinedstorage.api.util.IComparer;
import com.raoulvdberge.refinedstorage.apiimpl.API;
import com.raoulvdberge.refinedstorage.inventory.ItemHandlerBase;
import com.raoulvdberge.refinedstorage.inventory.ItemHandlerListenerNetworkNode;
import com.raoulvdberge.refinedstorage.inventory.ItemHandlerProxy;
@@ -79,6 +80,8 @@ public class NetworkNodeInterface extends NetworkNode implements IComparable {
if (!got.isEmpty()) {
exportItems.setStackInSlot(i, RSUtils.transformNullToEmpty(network.insertItemTracked(got, got.getCount())));
}
} else if (!got.isEmpty() && !API.instance().getComparer().isEqualNoQuantity(wanted, got)) {
exportItems.setStackInSlot(i, RSUtils.transformNullToEmpty(network.insertItemTracked(got, got.getCount())));
} else {
int delta = got.isEmpty() ? wanted.getCount() : (wanted.getCount() - got.getCount());