This commit is contained in:
Blackvein 2012-11-13 11:59:40 -08:00
parent f8e5216b4d
commit 6b339dc1ce

View File

@ -538,7 +538,6 @@ public class PlayerListener implements Listener {
ItemStack oldStack = evt.getCurrentItem(); ItemStack oldStack = evt.getCurrentItem();
Inventory inv = plugin.getServer().createInventory(null, evt.getInventory().getType()); Inventory inv = plugin.getServer().createInventory(null, evt.getInventory().getType());
HashMap<Integer, ItemStack> map = inv.addItem(oldStack); HashMap<Integer, ItemStack> map = inv.addItem(oldStack);
if (map.isEmpty() == false) { if (map.isEmpty() == false) {
ItemStack newStack = oldStack.clone(); ItemStack newStack = oldStack.clone();
@ -546,7 +545,6 @@ public class PlayerListener implements Listener {
quester.collectItem(newStack); quester.collectItem(newStack);
} else { } else {
System.out.println("Collecting " + oldStack);
quester.collectItem(oldStack); quester.collectItem(oldStack);
} }