Skip to content

Commit

Permalink
fix(utils): fix isDev function potential case sensitivity bug
Browse files Browse the repository at this point in the history
  • Loading branch information
WakelessSloth56 committed Jul 18, 2022
1 parent 4ecb0a9 commit 892b677
Showing 1 changed file with 2 additions and 0 deletions.
@@ -1,5 +1,6 @@
package org.auioc.mcmod.arnicalib.utils.game;

import java.util.Locale;
import cpw.mods.modlauncher.Launcher;
import cpw.mods.modlauncher.api.IEnvironment;

Expand All @@ -10,6 +11,7 @@ static boolean isDev() {
.environment()
.getProperty(IEnvironment.Keys.LAUNCHTARGET.get())
.orElse("missing")
.toLowerCase(Locale.ROOT)
.contains("dev");
}

Expand Down

0 comments on commit 892b677

Please sign in to comment.