aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-30 00:48:01 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-30 00:48:01 +0100
commit90ff11ebbdbdbca7af6365344981f72dc3916fc0 (patch)
tree0be01c9f43f3e63d1e8c38ded64546566ce35631 /src/main/java/at/hannibal2/skyhanni/utils
parent247d4d324dc9ce5960d8c94719707d232a89e3ad (diff)
downloadskyhanni-90ff11ebbdbdbca7af6365344981f72dc3916fc0.tar.gz
skyhanni-90ff11ebbdbdbca7af6365344981f72dc3916fc0.tar.bz2
skyhanni-90ff11ebbdbdbca7af6365344981f72dc3916fc0.zip
Using a broken config no longer resets the config in dev env.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt
index e82ce0da1..8ed5de686 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt
@@ -23,6 +23,7 @@ import net.minecraft.entity.EntityLivingBase
import net.minecraft.entity.SharedMonsterAttributes
import net.minecraft.event.ClickEvent
import net.minecraft.event.HoverEvent
+import net.minecraft.launchwrapper.Launch
import net.minecraft.util.ChatComponentText
import java.awt.Color
import java.lang.reflect.Field
@@ -625,4 +626,6 @@ object LorenzUtils {
inline fun <reified T : Enum<T>> enumValueOf(name: String) =
enumValueOfOrNull<T>(name)
?: kotlin.error("Unknown enum constant for ${enumValues<T>().first().name.javaClass.simpleName}: '$name'")
+
+ fun isInDevEnviromen() = Launch.blackboard.get("fml.deobfuscatedEnvironment") as Boolean
}