diff options
author | Linnea Gräf <nea@nea.moe> | 2024-04-08 18:45:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-08 18:45:11 +0200 |
commit | 878f8ee718c43d66e068f40e1c2ef7d30abb7ac4 (patch) | |
tree | a81a5d1496c2bf4f654e2874c572730fb0b1e9cd /src/main/java/at/hannibal2/skyhanni/events | |
parent | ff6dd291a0f89644508171e6b984295de20466ce (diff) | |
download | skyhanni-878f8ee718c43d66e068f40e1c2ef7d30abb7ac4.tar.gz skyhanni-878f8ee718c43d66e068f40e1c2ef7d30abb7ac4.tar.bz2 skyhanni-878f8ee718c43d66e068f40e1c2ef7d30abb7ac4.zip |
Add hud element config links. (#1383)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/events')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt index 31b4cfc98..2d97da6b0 100644 --- a/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt +++ b/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt @@ -6,6 +6,8 @@ import at.hannibal2.skyhanni.mixins.hooks.setValue import at.hannibal2.skyhanni.mixins.transformers.AccessorEventBus import at.hannibal2.skyhanni.test.command.ErrorManager import at.hannibal2.skyhanni.utils.ChatUtils +import at.hannibal2.skyhanni.utils.LorenzUtils +import net.minecraft.launchwrapper.Launch import net.minecraftforge.common.MinecraftForge import net.minecraftforge.fml.common.eventhandler.Event import net.minecraftforge.fml.common.eventhandler.IEventListener @@ -25,7 +27,7 @@ abstract class LorenzEvent : Event() { return 0 } } - val isInGuardedEventHandler get() = eventHandlerDepth > 0 + val isInGuardedEventHandler get() = eventHandlerDepth > 0 || LorenzUtils.isInDevEnvironment() } fun postAndCatchAndBlock( |