From 2d46bc531362977061383edea16a117d0af0ff0e Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Wed, 6 Jul 2022 13:18:52 +0800 Subject: + fix waypoints not loading when first entering a lobby --- features/waypoints/index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'features/waypoints') 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", () => { -- cgit