mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-12-27 20:37:34 +01:00
Slightly sketchy fix for QuestsGUI
This commit is contained in:
parent
fb9c51a1ac
commit
904e3781bc
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user