aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/index.js b/index.js
index af2e96f..d59ede7 100644
--- a/index.js
+++ b/index.js
@@ -2,7 +2,11 @@
/// <reference lib="es2015" />
if (net.minecraftforge.fml.common.Loader.isModLoaded("soopyv2forge")) {
- Java.type("me.soopyboo32.soopyv2forge.SoopyV2Forge").INSTANCE.soopyIsInstalled()
+ new Thread(() => {
+ while (!Java.type("me.soopyboo32.soopyv2forge.SoopyV2Forge").INSTANCE) { }
+
+ Java.type("me.soopyboo32.soopyv2forge.SoopyV2Forge").INSTANCE.soopyIsInstalled()
+ }).start()
}
const File = Java.type("java.io.File")