Fix debug flags

This commit is contained in:
Sollace 2022-12-04 15:53:30 +00:00
parent 980355851b
commit 8eace74353

View file

@ -11,8 +11,8 @@ public final class Debug {
static {
Map<String, String> args = parseArguments(FabricLoader.getInstance().getLaunchArguments(true));
DEBUG_SPELLBOOK_CHAPTERS = "true".equalsIgnoreCase(args.getOrDefault("unicopia.debug.spellbookChapters", "false"));
DEBUG_COMMANDS = "true".equalsIgnoreCase(args.getOrDefault("unicopia.debug.commands", "false"));
DEBUG_SPELLBOOK_CHAPTERS = "true".equalsIgnoreCase(args.getOrDefault("--unicopia.debug.spellbookChapters", "false"));
DEBUG_COMMANDS = "true".equalsIgnoreCase(args.getOrDefault("--unicopia.debug.commands", "false"));
}
static Map<String, String> parseArguments(String[] args) {