Skip to content

Commit

Permalink
feat(utils): EnvironmentUtils static flags
Browse files Browse the repository at this point in the history
  • Loading branch information
WakelessSloth56 committed Aug 13, 2022
1 parent 0ef6e68 commit 86a8835
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Expand Up @@ -18,7 +18,7 @@ public final class AHServerCommands {
public static void register(CommandDispatcher<CommandSourceStack> dispatcher) {
VersionCommand.addVersionNode(NODE, ArnicaLib.class);
NODE.addChild(RtpCommand.NODE);
if (EnvironmentUtils.isDev()) addTestNode(NODE);
if (EnvironmentUtils.IS_DEV) addTestNode(NODE);

getAHNode(dispatcher).addChild(NODE);
}
Expand Down
Expand Up @@ -6,6 +6,8 @@

public interface EnvironmentUtils {

boolean IS_DEV = isDev();

static boolean isDev() {
return Launcher.INSTANCE
.environment()
Expand Down

0 comments on commit 86a8835

Please sign in to comment.