[BugFix] Failed to invoke entry method (Caused by duplicate init EventBus)

This commit is contained in:
xiaozhou233 committed 2026-01-18 20:50:35 +08:00
1 parent f3a2835e2b
commit 367bc74e4c
2 files changed
+10 -3

No files matched your search

@@ -36,9 +36,10 @@ public class Loader {
// Start OrangeX
try {
Class<?> orangeXClass = Class.forName("cn.xiaozhou233.orangex.OrangeX", true, minecraftClassLoader);
Object orangeXInstance = orangeXClass.getDeclaredConstructor().newInstance();
Object orangeXInstance = orangeXClass.getMethod("getInstance").invoke(null);
orangeXClass.getMethod("start").invoke(orangeXInstance);
} catch (Exception e) {
throw new RuntimeException(e);
}