Fixing Quest item chest bug

This commit is contained in:
Blackvein 2012-11-08 12:00:54 -08:00
parent 33e5b78f2c
commit 3ef0154098

View File

@ -526,7 +526,7 @@ public class PlayerListener implements Listener {
return; return;
} }
List<Integer> changedSlots = Quester.getChangedSlots(evt.getInventory(), evt.getCurrentItem()); List<Integer> changedSlots = Quester.getChangedSlots(evt.getWhoClicked().getInventory(), evt.getCurrentItem());
System.out.println("Number of changed slots: " + changedSlots.size()); System.out.println("Number of changed slots: " + changedSlots.size());
boolean can = true; boolean can = true;
for (int i : changedSlots) { for (int i : changedSlots) {