diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-11 17:46:22 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-11 17:46:22 +0800 |
commit | 1a23a0071a1c220d0e70c99f9d71904f0635fad0 (patch) | |
tree | 8197710e3d9e75c2f271696ae96b6488ef120404 /features/mining | |
parent | 4cfe8fd69d2d72df01dcc6804ab6b801e3890e73 (diff) | |
download | SoopyV2-1a23a0071a1c220d0e70c99f9d71904f0635fad0.tar.gz SoopyV2-1a23a0071a1c220d0e70c99f9d71904f0635fad0.tar.bz2 SoopyV2-1a23a0071a1c220d0e70c99f9d71904f0635fad0.zip |
+ small bugfixes
Diffstat (limited to 'features/mining')
-rw-r--r-- | features/mining/index.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/features/mining/index.js b/features/mining/index.js index 3536501..98f045c 100644 --- a/features/mining/index.js +++ b/features/mining/index.js @@ -56,7 +56,7 @@ class Mining extends Feature { .setLocationSetting(new LocationSetting("HUD Location", "Allows you to edit the location of the gemstone $/h", "gemstone_money_location", this, [10, 60, 1, 1]) .requires(this.gemstoneMoneyHud) .editTempText("&6$/h&7> &f$12,345,678\n&6$ made&7> &f$123,456,789\n&6Time tracked&7> &f123m")) - this.gemstoneMoneyHudMoneyOnly = new ToggleSetting("Force npc price", "(Eg if u are ironman)", true, "gemstone_money_hud_npc", this).requires(this.gemstoneMoneyHud) + this.gemstoneMoneyHudMoneyOnly = new ToggleSetting("Force npc price", "(Eg if u are ironman)", false, "gemstone_money_hud_npc", this).requires(this.gemstoneMoneyHud) this.hudElements.push(this.gemstoneMoneyHudElement) this.nextChEvent = new ToggleSetting("Show the current and next crystal hollows event", "(syncs the data between all users in ch)", true, "chevent_hud", this) @@ -187,6 +187,18 @@ class Mining extends Feature { let ignoreLocation = undefined + this.registerEvent("worldLoad", () => { + lastLoc = [0, 0, 0] + + this.baseCoordinates = undefined + + this.lastSearchedForBase = 0 + + this.predictedChestLocations = [] + + ignoreLocation = undefined + }) + let registerActionBar = this.registerCustom("actionbar", (dist) => { let lapis = false |