This commit is contained in:
Blackvein 2012-11-02 12:04:25 -07:00
parent 7fb41705bc
commit f86765c90e

View File

@ -23,6 +23,7 @@ import org.bukkit.event.entity.PlayerDeathEvent;
import org.bukkit.event.inventory.CraftItemEvent; import org.bukkit.event.inventory.CraftItemEvent;
import org.bukkit.event.inventory.InventoryClickEvent; import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.event.inventory.InventoryCloseEvent; import org.bukkit.event.inventory.InventoryCloseEvent;
import org.bukkit.event.inventory.InventoryType;
import org.bukkit.event.player.PlayerFishEvent.State; import org.bukkit.event.player.PlayerFishEvent.State;
import org.bukkit.event.player.*; import org.bukkit.event.player.*;
import org.bukkit.inventory.Inventory; import org.bukkit.inventory.Inventory;
@ -502,6 +503,9 @@ public class PlayerListener implements Listener {
if (quester.currentQuest.questItems.containsKey(mat)) { if (quester.currentQuest.questItems.containsKey(mat)) {
if(evt.getInventory().getType().equals(InventoryType.CRAFTING) && evt.getRawSlot() == 0)
return;
List<Integer> changedSlots = Quester.getChangedSlots(evt.getInventory(), evt.getCurrentItem()); List<Integer> changedSlots = Quester.getChangedSlots(evt.getInventory(), evt.getCurrentItem());
boolean can = true; boolean can = true;
for (int i : changedSlots) { for (int i : changedSlots) {