externalize devenv check

This commit is contained in:
FalsePattern committed 2022-08-23 21:05:30 +02:00
1 parent f1004e4e75
commit 4cf5f39fe5
3 files changed
+6 -7

No files matched your search

@@ -26,7 +26,11 @@ import lombok.NoArgsConstructor;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import net.minecraft.launchwrapper.Launch;
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class Share {
public static final Logger LOG = LogManager.getLogger(Tags.MODNAME);
public static final boolean DEV_ENV = (boolean) Launch.blackboard.get("fml.deobfuscatedEnvironment");
}