Fixed 'Menu not instance of EcoMenu!' bug

This commit is contained in:
Auxilor
2021-07-21 21:45:59 +01:00
parent 800e83d24b
commit 2c12f78aa6

View File

@@ -54,6 +54,10 @@ public class GUIListener extends PluginDependent<EcoPlugin> implements Listener
Menu menu = MenuHandler.getMenu(event.getInventory());
if (menu == null) {
return;
}
Validate.isTrue(menu instanceof EcoMenu, "Menu not instance of EcoMenu!");
EcoMenu ecoMenu = (EcoMenu) menu;