Merge pull request #314 from TinyTank800/1.8.8_TO_1.12.2

CRITICAL HOT FIX 1.8-1.12
This commit is contained in:
RockyHawk 2024-05-05 15:53:18 +10:00 committed by GitHub
commit 016d67f7c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,6 +32,9 @@ public class GenUtils implements Listener {
@EventHandler
public void onInventoryClose(InventoryCloseEvent e) {
Player p = (Player)e.getPlayer();
if (!this.plugin.generateMode.contains(p)) {
return;
}
if(!ChatColor.stripColor(e.getView().getTitle()).equals("Generate New Panel")){
return;
}
@ -110,4 +113,4 @@ public class GenUtils implements Listener {
}
plugin.reloadPanelFiles();
}
}
}