aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-01 19:38:14 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-01 19:38:14 +0800
commit7e89c3f8f2a2067314464c63ac7a2e2f96341a7d (patch)
tree3b7ef754c4e4fba0096d788fc551e10a317264b7
parent819ccf065c1c96600ee62871ac92ebaf1f610260 (diff)
downloadSoopyV2-7e89c3f8f2a2067314464c63ac7a2e2f96341a7d.tar.gz
SoopyV2-7e89c3f8f2a2067314464c63ac7a2e2f96341a7d.tar.bz2
SoopyV2-7e89c3f8f2a2067314464c63ac7a2e2f96341a7d.zip
make fix not lag cpu
-rw-r--r--index.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.js b/index.js
index d59ede7..8448f84 100644
--- a/index.js
+++ b/index.js
@@ -3,7 +3,9 @@
if (net.minecraftforge.fml.common.Loader.isModLoaded("soopyv2forge")) {
new Thread(() => {
- while (!Java.type("me.soopyboo32.soopyv2forge.SoopyV2Forge").INSTANCE) { }
+ while (!Java.type("me.soopyboo32.soopyv2forge.SoopyV2Forge").INSTANCE) {
+ Thread.sleep(1000)
+ }
Java.type("me.soopyboo32.soopyv2forge.SoopyV2Forge").INSTANCE.soopyIsInstalled()
}).start()