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

clean: prevent accidentally passing a null to a notnull method in menu types

This commit is contained in:
LoJoSho
2023-08-06 10:10:47 -05:00
parent 17db498e18
commit 62a1d04040

View File

@@ -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);
}