aboutsummaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-17 19:39:05 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-17 19:39:05 +0800
commit431e4fc9d1657a50ebc34b8ac24f9bfaea06417f (patch)
tree5987bb14f38d2999c682970429f34b41eb3e5826 /index.js
parente73f2efdf0f50aa775c540317394d46428e9704f (diff)
downloadSoopyV2-431e4fc9d1657a50ebc34b8ac24f9bfaea06417f.tar.gz
SoopyV2-431e4fc9d1657a50ebc34b8ac24f9bfaea06417f.tar.bz2
SoopyV2-431e4fc9d1657a50ebc34b8ac24f9bfaea06417f.zip
Initial move to babel + change fetch to use async/await
Diffstat (limited to 'index.js')
-rw-r--r--index.js58
1 files changed, 0 insertions, 58 deletions
diff --git a/index.js b/index.js
deleted file mode 100644
index 8448f84..0000000
--- a/index.js
+++ /dev/null
@@ -1,58 +0,0 @@
-/// <reference types="../CTAutocomplete" />
-/// <reference lib="es2015" />
-
-if (net.minecraftforge.fml.common.Loader.isModLoaded("soopyv2forge")) {
- new Thread(() => {
- while (!Java.type("me.soopyboo32.soopyv2forge.SoopyV2Forge").INSTANCE) {
- Thread.sleep(1000)
- }
-
- Java.type("me.soopyboo32.soopyv2forge.SoopyV2Forge").INSTANCE.soopyIsInstalled()
- }).start()
-}
-
-const File = Java.type("java.io.File")
-class SoopyAddons {
- constructor() {
- this.FeatureManager = require("./featureClass/featureManager.js")
-
- this.FeatureManager.parent = this
- }
-}
-if (FileLib.read("soopyAddonsData", "deletesoopyv1please.txt") === "true") {
- new Thread(() => {
- Thread.sleep(2000)
- FileLib.deleteDirectory(new File("./config/ChatTriggers/modules/soopyAddons"))
-
- FileLib.write("soopyAddonsData", "deletesoopyv1please.txt", "false")
-
- ChatLib.command("ct reload", true)
- }).start()
-} else {
- let a = register("worldLoad", () => {
- if (FileLib.read("soopyAddonsData", "firstload.txt") !== "true") {
- b = register("tick", () => {
- new Thread(() => {
- ChatLib.chat("&7Loading SoopyV2 required modules...") //idk what to say to chat, but it requires an extra ct load after starting to load stuff like mappings (maby this should be part of mappings module, but i put it here so it doesent try to load the first load page thingo)
- FileLib.write("soopyAddonsData", "firstload.txt", "true")
- Thread.sleep(2000)
-
- ChatLib.command("ct reload", true)
- }).start()
-
- b.unregister()
- })
- } else {
- new SoopyAddons()
- }
- a.unregister()
- })
-}
-
-if (new File("./config/ChatTriggers/modules/SoopyV2UpdateButtonPatcher").exists()) {
- new Thread(() => {
- Thread.sleep(2000)
- ChatLib.chat("&7Deleting SoopyV2UpdateButtonPatcher as its no longer needed")
- FileLib.deleteDirectory(new File("./config/ChatTriggers/modules/SoopyV2UpdateButtonPatcher"))
- }).start()
-} \ No newline at end of file