diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-07-06 13:18:52 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-07-06 13:18:52 +0800 |
commit | 2d46bc531362977061383edea16a117d0af0ff0e (patch) | |
tree | 81ecaa975136dca461e79f7b43228472a0453504 /features | |
parent | b4a576e248ff2ada9bffdc92ed381d4fb831ce07 (diff) | |
download | SoopyV2-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.js | 6 |
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", () => { |