We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc27fce commit 0af5c94Copy full SHA for 0af5c94
src/main/java/com/falsepattern/lib/internal/Share.java
@@ -27,7 +27,7 @@
27
import org.apache.logging.log4j.LogManager;
28
import org.apache.logging.log4j.Logger;
29
30
-import net.minecraft.launchwrapper.LaunchClassLoader;
+import net.minecraft.launchwrapper.Launch;
31
32
import java.io.IOException;
33
@@ -39,7 +39,7 @@ public final class Share {
39
40
static {
41
try {
42
- val bs = ((LaunchClassLoader) Share.class.getClassLoader()).getClassBytes("net.minecraft.world.World");
+ val bs = Launch.classLoader.getClassBytes("net.minecraft.world.World");
43
DEV_ENV = bs != null;
44
} catch (IOException e) {
45
throw new RuntimeException(e);
0 commit comments