9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-30 04:19:28 +00:00

All uppercase for menu types

This commit is contained in:
LoJoSho
2022-12-19 13:13:05 -06:00
parent 15790c8bf9
commit fcbb39a07b

View File

@@ -13,14 +13,14 @@ public class Types {
private static TypeEmpty TYPE_EMPTY = new TypeEmpty();
public static Type getType(String id) {
return types.get(id);
return types.get(id.toUpperCase());
}
public static boolean isType(String id) {
return types.containsKey(id);
return types.containsKey(id.toUpperCase());
}
public static void addType(Type type) {
types.put(type.getId(), type);
types.put(type.getId().toUpperCase(), type);
}
}