Unicopia/src/main/java/com/minelittlepony/unicopia/Debug.java

17 lines
631 B
Java
Raw Normal View History

2022-10-11 17:19:50 +02:00
package com.minelittlepony.unicopia;
import net.fabricmc.loader.api.FabricLoader;
import net.fabricmc.loader.impl.util.Arguments;
public final class Debug {
public static final boolean DEBUG_SPELLBOOK_CHAPTERS;
public static final boolean DEBUG_COMMANDS;
static {
Arguments args = new Arguments();
args.parse(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"));
}
}