File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
src/main/java/com/falsepattern/lib/internal Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 23
23
24
24
import lombok .AccessLevel ;
25
25
import lombok .NoArgsConstructor ;
26
+ import lombok .val ;
26
27
import org .apache .logging .log4j .LogManager ;
27
28
import org .apache .logging .log4j .Logger ;
28
29
29
- import net .minecraft .launchwrapper .Launch ;
30
+ import net .minecraft .launchwrapper .LaunchClassLoader ;
31
+
32
+ import java .io .IOException ;
30
33
31
34
@ NoArgsConstructor (access = AccessLevel .PRIVATE )
32
35
public final class Share {
33
36
public static final Logger LOG = LogManager .getLogger (Tags .MODNAME );
34
37
35
- public static final boolean DEV_ENV = (boolean ) Launch .blackboard .get ("fml.deobfuscatedEnvironment" );
38
+ public static final boolean DEV_ENV ;
39
+
40
+ static {
41
+ try {
42
+ val bs = ((LaunchClassLoader ) Share .class .getClassLoader ()).getClassBytes ("net.minecraft.world.World" );
43
+ DEV_ENV = bs != null ;
44
+ } catch (IOException e ) {
45
+ throw new RuntimeException (e );
46
+ }
47
+ }
36
48
}
You can’t perform that action at this time.
0 commit comments