aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/moe
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-08-05 17:04:51 +0200
committerLinnea Gräf <nea@nea.moe>2025-08-05 17:04:51 +0200
commitf5cbbcb1514f97dfd422f2da6184d21e9f0af16a (patch)
tree4322821329b58e999cf055a44cd50ccc161f6a20 /src/main/java/moe
parent923e03a8a21a59b6fd85242e36daf6f3a4caf5d9 (diff)
downloadFirmament-f5cbbcb1514f97dfd422f2da6184d21e9f0af16a.tar.gz
Firmament-f5cbbcb1514f97dfd422f2da6184d21e9f0af16a.tar.bz2
Firmament-f5cbbcb1514f97dfd422f2da6184d21e9f0af16a.zip
fix: Don't debug instantiate outside of devenv
Diffstat (limited to 'src/main/java/moe')
-rw-r--r--src/main/java/moe/nea/firmament/mixins/MainWindowFirstLoadPatch.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/moe/nea/firmament/mixins/MainWindowFirstLoadPatch.java b/src/main/java/moe/nea/firmament/mixins/MainWindowFirstLoadPatch.java
index 0a90b35..9e42b20 100644
--- a/src/main/java/moe/nea/firmament/mixins/MainWindowFirstLoadPatch.java
+++ b/src/main/java/moe/nea/firmament/mixins/MainWindowFirstLoadPatch.java
@@ -17,7 +17,7 @@ public class MainWindowFirstLoadPatch {
@Inject(method = "<init>(ZLnet/minecraft/client/gui/LogoDrawer;)V", at = @At("RETURN"))
private void onCreate(boolean doBackgroundFade, LogoDrawer logoDrawer, CallbackInfo ci) {
- if (!hasInited) {
+ if (!hasInited && Firmament.INSTANCE.getDEBUG()) {
try {
DebugInstantiateEvent.Companion.publish(new DebugInstantiateEvent());
} catch (Throwable t) {