mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-26 23:13:21 +00:00
#1132 Fixed item duplication bug with Dimensional Transceiver
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user