diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-01 19:38:14 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-01 19:38:14 +0800 |
commit | 7e89c3f8f2a2067314464c63ac7a2e2f96341a7d (patch) | |
tree | 3b7ef754c4e4fba0096d788fc551e10a317264b7 | |
parent | 819ccf065c1c96600ee62871ac92ebaf1f610260 (diff) | |
download | SoopyV2-7e89c3f8f2a2067314464c63ac7a2e2f96341a7d.tar.gz SoopyV2-7e89c3f8f2a2067314464c63ac7a2e2f96341a7d.tar.bz2 SoopyV2-7e89c3f8f2a2067314464c63ac7a2e2f96341a7d.zip |
make fix not lag cpu
-rw-r--r-- | index.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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() |