mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-30 06:56:12 +00:00
classic menu fix
This commit is contained in:
@@ -206,6 +206,9 @@ public class MainFrameClassicMenu extends MainFrameMenu {
|
||||
@Override
|
||||
public void setMenuEnabled(String path, boolean enabled) {
|
||||
path = mapping(path);
|
||||
if (path.equals("_") || path.startsWith("_/")) {
|
||||
return;
|
||||
}
|
||||
MenuElement menu = menuElements.get(path);
|
||||
if (menu == null) {
|
||||
throw new IllegalArgumentException("Menu " + path + " does not exist");
|
||||
|
||||
Reference in New Issue
Block a user