Update GenUtils.java

CRITICAL FIX
This commit is contained in:
TinyTank800 2024-05-04 20:40:05 -07:00 committed by GitHub
parent fe32486b0b
commit 66944ab903
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;
}