#1132 Fixed item duplication bug with Dimensional Transceiver

This commit is contained in:
CrazyPants committed 2014-10-20 00:29:27 +08:00
1 parent f2936973ad
commit 65c717cbaf
1 file changed
+1
@@ -217,6 +217,7 @@ public class ServerChannelRegister extends ChannelRegister {
if(ItemUtil.areStackTypesEqual(existing, contents)) {
recieverHasItem = true;
int numCanMerge = existing.getMaxStackSize() - existing.stackSize;
numCanMerge = Math.min(numCanMerge, contents.stackSize);
ItemStack remaining;
if(numCanMerge >= contents.stackSize) {
remaining = null;