aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-25 18:48:55 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-25 18:48:55 +0800
commitc24f8369cb7a368c1c89404c2860f4f2f4b78014 (patch)
treed5cea5f3286c516b69a1d8a9fb2943606f992963
parentd8ccaa30858f37f5e5fa087c6f8b126c2c37ea58 (diff)
downloadSoopyV2-c24f8369cb7a368c1c89404c2860f4f2f4b78014.tar.gz
SoopyV2-c24f8369cb7a368c1c89404c2860f4f2f4b78014.tar.bz2
SoopyV2-c24f8369cb7a368c1c89404c2860f4f2f4b78014.zip
smol changes
-rw-r--r--src/featureClass/featureManager.js11
-rw-r--r--src/index.js40
-rw-r--r--src/metadata.json1
3 files changed, 10 insertions, 42 deletions
diff --git a/src/featureClass/featureManager.js b/src/featureClass/featureManager.js
index 30e7525..6974f46 100644
--- a/src/featureClass/featureManager.js
+++ b/src/featureClass/featureManager.js
@@ -182,11 +182,12 @@ class FeatureManager {
this.registerCommand("soopysetlongeventtime", (args) => {
this.longEventTime = parseInt(args)
}, this)
- this.registerCommand("soopylaginformation", (args) => {
- this.loadPerformanceData()
- }, this)
- this.registerCommand("soopylaginformationfast", (args) => {
- this.loadPerformanceDataFast()
+ this.registerCommand("soopylaginformation", (full) => {
+ if (full === "full") {
+ this.loadPerformanceData()
+ } else {
+ this.loadPerformanceDataFast()
+ }
}, this)
}
diff --git a/src/index.js b/src/index.js
index 031dc5b..be558d6 100644
--- a/src/index.js
+++ b/src/index.js
@@ -13,7 +13,6 @@ if (net.minecraftforge.fml.common.Loader.isModLoaded("soopyv2forge")) {
}).start()
}
-const File = Java.type("java.io.File")
class SoopyAddons {
constructor() {
this.FeatureManager = require("./featureClass/featureManager.js")
@@ -21,40 +20,9 @@ class SoopyAddons {
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")
+let a = register("worldLoad", () => {
+ new SoopyAddons()
- 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
+ a.unregister()
+}) \ No newline at end of file
diff --git a/src/metadata.json b/src/metadata.json
index 62fb271..f260835 100644
--- a/src/metadata.json
+++ b/src/metadata.json
@@ -13,7 +13,6 @@
"guimanager",
"mappings",
"BeaconBeam",
- "RenderLib2D",
"PromiseV2"
]
} \ No newline at end of file