aboutsummaryrefslogtreecommitdiff
path: root/features/events/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-05-08 10:33:14 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-05-08 10:33:14 +0800
commit9efaf2250303d44089b2993af6f532921919f2fa (patch)
treeb2aa299d28f197afee275151f7f816f035467a1e /features/events/index.js
parentbfcb5697c06cef2df9b39272397c433299f6350c (diff)
downloadSoopyV2-9efaf2250303d44089b2993af6f532921919f2fa.tar.gz
SoopyV2-9efaf2250303d44089b2993af6f532921919f2fa.tar.bz2
SoopyV2-9efaf2250303d44089b2993af6f532921919f2fa.zip
+ inquis waypoints correctly dissapear when u dig a burrow
Diffstat (limited to 'features/events/index.js')
-rw-r--r--features/events/index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/features/events/index.js b/features/events/index.js
index 309a788..61ba36e 100644
--- a/features/events/index.js
+++ b/features/events/index.js
@@ -190,6 +190,7 @@ class Events extends Feature {
e = new Entity(e)
if (e.getName().toLowerCase().includes("inquis") && Math.abs(e.getY() - Player.getY()) < 10 && Math.abs(e.getX() - Player.getX()) < 10 && Math.abs(e.getZ() - Player.getZ()) < 10) {
socketConnection.sendInquisData({ loc: [Math.round(Player.getX()), Math.round(Player.getY()), Math.round(Player.getZ())] });
+ this.inquisWaypointSpawned = true
}
})
this.todoE = []
@@ -383,6 +384,7 @@ class Events extends Feature {
burrialClicked() {
if (this.inquisWaypointSpawned) {
socketConnection.sendInquisData({ loc: null });
+ this.inquisWaypointSpawned = false
}
if (!this.showingWaypoints) return