aboutsummaryrefslogtreecommitdiff
path: root/features/nether/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-05-29 12:06:18 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-05-29 12:06:18 +0800
commit9ec9aa2d495df5a6c48b8edbd5fe31052d20b37b (patch)
treeaa20f5314241d517b0a50b123926077685fb700e /features/nether/index.js
parenta6593709b0e1e99e241b6c163fe66623685b6efc (diff)
parent51cdd4ca4ea64e1a9a67b99c274693a54f7f535d (diff)
downloadSoopyV2-9ec9aa2d495df5a6c48b8edbd5fe31052d20b37b.tar.gz
SoopyV2-9ec9aa2d495df5a6c48b8edbd5fe31052d20b37b.tar.bz2
SoopyV2-9ec9aa2d495df5a6c48b8edbd5fe31052d20b37b.zip
Merge branch 'master' of https://github.com/Soopyboo32/SoopyV2
Diffstat (limited to 'features/nether/index.js')
-rw-r--r--features/nether/index.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/features/nether/index.js b/features/nether/index.js
index 67accbc..52d1041 100644
--- a/features/nether/index.js
+++ b/features/nether/index.js
@@ -89,8 +89,8 @@ class Nether extends Feature {
})
}
- vanqData(loc) {
- this.spawnedVanqs.push([...loc, Date.now()])
+ vanqData(loc, name) {
+ this.spawnedVanqs.push([loc, name, Date.now()])
}
tick() {
@@ -212,8 +212,8 @@ class Nether extends Feature {
}
if (this.vaniquisherWaypoints.getValue()) {
- Object.keys(this.spawnedVanqs).forEach(key => {
- drawCoolWaypoint(this.spawnedVanqs[key][0], this.spawnedVanqs[key][1], this.spawnedVanqs[key][2], 255, 0, 0, { name: key + "'s vanquisher (" + Math.floor((Date.now() - this.spawnedVanqs[key][2]) / 1000) + "s)" })
+ this.spawnedVanqs.forEach(vanq => {
+ drawCoolWaypoint(vanq[0][0], vanq[0][1], vanq[0][2], 255, 0, 0, { name: vanq[1] + "'s vanquisher (" + Math.floor((Date.now() - vanq[2]) / 1000) + "s)" })
})
}
@@ -232,7 +232,7 @@ class Nether extends Feature {
step1S() {
if (this.blocks) this.blocks = this.blocks.filter(state => Date.now() < state.time)
if (this.dojoFireBalls) this.dojoFireBalls = this.dojoFireBalls.filter(e => !e[f.isDead])
- if (this.spawnedVanqs) this.spawnedVanqs = this.spawnedVanqs.filter(a => Date.now() - a[3] < 60000)
+ if (this.spawnedVanqs) this.spawnedVanqs = this.spawnedVanqs.filter(a => Date.now() - a[2] < 60000)
}
getBlockIdFromState(state) {