Ooops. Fix InventoryUtil DragEvent change calculation.

This commit is contained in:
Olof Larsson 2016-04-27 16:55:56 +02:00
parent 0da8e6f8aa
commit 1a20951ef6
No known key found for this signature in database
GPG Key ID: BBEF14F97DA52474

View File

@ -750,10 +750,10 @@ public class InventoryUtil
if (InventoryUtil.isBottomInventory(rawSlot, inventory)) continue;
ItemStack take = inventory.getItem(rawSlot);
if (isSomething(take)) ret.add(new SimpleEntry<ItemStack, Integer>(take, -take.getAmount()));
if (isSomething(take)) ret.add(new SimpleEntry<ItemStack, Integer>(take, +take.getAmount()));
ItemStack give = entry.getValue();
if (isSomething(give)) ret.add(new SimpleEntry<ItemStack, Integer>(give, +take.getAmount()));
if (isSomething(give)) ret.add(new SimpleEntry<ItemStack, Integer>(give, -give.getAmount()));
}
// Return