aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-01 19:37:38 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-01 19:37:38 +0800
commitabbfac0597eaa1a968102ffb64d94bc61424f520 (patch)
treeba44fffe679e3e7e9df04b0e3fcec480f4d5eb97
parentdc7032bbb937cbff276d18fba263ef1625834c6b (diff)
downloadSoopyV2-abbfac0597eaa1a968102ffb64d94bc61424f520.tar.gz
SoopyV2-abbfac0597eaa1a968102ffb64d94bc61424f520.tar.bz2
SoopyV2-abbfac0597eaa1a968102ffb64d94bc61424f520.zip
fix soopyv2installed not being called
-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")