aboutsummaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-07-06 13:18:52 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-07-06 13:18:52 +0800
commit2d46bc531362977061383edea16a117d0af0ff0e (patch)
tree81ecaa975136dca461e79f7b43228472a0453504 /features
parentb4a576e248ff2ada9bffdc92ed381d4fb831ce07 (diff)
downloadSoopyV2-2d46bc531362977061383edea16a117d0af0ff0e.tar.gz
SoopyV2-2d46bc531362977061383edea16a117d0af0ff0e.tar.bz2
SoopyV2-2d46bc531362977061383edea16a117d0af0ff0e.zip
+ fix waypoints not loading when first entering a lobby
Diffstat (limited to 'features')
-rw-r--r--features/waypoints/index.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/features/waypoints/index.js b/features/waypoints/index.js
index 8d20a64..80a06b0 100644
--- a/features/waypoints/index.js
+++ b/features/waypoints/index.js
@@ -163,10 +163,8 @@ class Waypoints extends Feature {
this.lastSend = 0
this.locations = {}
minewaypoints_socket.setLocationHandler = (area, loc) => {
- if (!area) return
- if (area == "undefined") return
- this.locations[area] = loc;
- // console.log(JSON.stringify(loc, undefined, 2))
+ console.log(area || loc[0].area, JSON.stringify(loc, undefined, 2))
+ this.locations[area || loc[0].area] = loc;
}
this.registerEvent("tick", () => {