aboutsummaryrefslogtreecommitdiff
path: root/features/waypoints
diff options
context:
space:
mode:
Diffstat (limited to 'features/waypoints')
-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", () => {