mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-22 17:17:38 +01:00
Unstable
This commit is contained in:
parent
7fb41705bc
commit
f86765c90e
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user