9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-20 15:39:16 +00:00

Menu Internal Names Uppercase

This commit is contained in:
LoJoSho
2022-12-19 13:14:20 -06:00
parent fcbb39a07b
commit eb6e867c9f

View File

@@ -17,11 +17,11 @@ public class Menus {
private static HashMap<String, Menu> MENUS = new HashMap<>();
public static void addMenu(Menu menu) {
MENUS.put(menu.getId(), menu);
MENUS.put(menu.getId().toUpperCase(), menu);
}
public static Menu getMenu(String id) {
return MENUS.get(id);
return MENUS.get(id.toUpperCase());
}
public static Collection<Menu> getMenu() {
@@ -29,7 +29,7 @@ public class Menus {
}
public static boolean hasMenu(String id) {
return MENUS.containsKey(id);
return MENUS.containsKey(id.toUpperCase());
}
public static boolean hasMenu(Menu menu) {