Slightly sketchy fix for QuestsGUI

This commit is contained in:
Auxilor 2020-10-20 16:00:11 +01:00
parent fb9c51a1ac
commit 904e3781bc

View File

@ -26,6 +26,7 @@ public class AnvilListeners implements Listener {
if(event.getViewers().isEmpty()) return; // Prevent ArrayIndexOutOfBoundsException when using AnvilGUI
Player player = (Player) event.getViewers().get(0);
if(player.getOpenInventory().getTitle().toLowerCase().contains("quest")) return; // Fix for QuestsGUI
Pair<ItemStack, Integer> newOut = AnvilMerge.doMerge(left, right, out, name, player);