mirror of
https://github.com/HibiscusMC/HMCCosmetics.git
synced 2025-12-30 04:19:28 +00:00
clean: prevent accidentally passing a null to a notnull method in menu types
This commit is contained in:
@@ -102,7 +102,7 @@ public class Menu {
|
||||
Type type = null;
|
||||
|
||||
if (!config.node("type").virtual()) {
|
||||
String typeId = config.node("type").getString();
|
||||
String typeId = config.node("type").getString("");
|
||||
if (Types.isType(typeId)) type = Types.getType(typeId);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user