From 0bdf178b8f4b282c2c9eb4147eba1ae2ffb34b5f Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Thu, 26 May 2022 22:41:08 +0800 Subject: + fix vanquisher waypoints --- features/nether/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'features') 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) { -- cgit