Skip to content

Commit

Permalink
feat(utils): method for detecting if running in dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
WakelessSloth56 committed Jun 24, 2022
1 parent 0466ed1 commit 6f4b37c
Showing 1 changed file with 16 additions and 0 deletions.
@@ -0,0 +1,16 @@
package org.auioc.mcmod.arnicalib.utils.game;

import cpw.mods.modlauncher.Launcher;
import cpw.mods.modlauncher.api.IEnvironment;

public interface EnvironmentUtils {

static boolean isDev() {
return Launcher.INSTANCE
.environment()
.getProperty(IEnvironment.Keys.LAUNCHTARGET.get())
.orElse("missing")
.contains("dev");
}

}

0 comments on commit 6f4b37c

Please sign in to comment.