From 1e1aa805684a94d74b881b3dd4b3fd5758f0d2f1 Mon Sep 17 00:00:00 2001 From: isaisstillalive Date: Tue, 7 Jul 2020 08:35:39 +0900 Subject: [PATCH] Rename sort to sortWaypoints --- src/js/game/hud/parts/waypoints.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/game/hud/parts/waypoints.js b/src/js/game/hud/parts/waypoints.js index 072b02fc..7b7511b8 100644 --- a/src/js/game/hud/parts/waypoints.js +++ b/src/js/game/hud/parts/waypoints.js @@ -272,7 +272,7 @@ export class HUDWaypoints extends BaseHUDPart { zoomLevel: Math.max(this.root.camera.zoomLevel, globalConfig.mapChunkOverviewMinZoom + 0.05), }); - this.sort(); + this.sortWaypoints(); // Show notification about creation this.root.hud.signals.notification.dispatch( @@ -325,7 +325,7 @@ export class HUDWaypoints extends BaseHUDPart { renameWaypoint(waypoint, label) { waypoint.label = label; - this.sort(); + this.sortWaypoints(); // Show notification about renamed this.root.hud.signals.notification.dispatch( @@ -349,7 +349,7 @@ export class HUDWaypoints extends BaseHUDPart { /** * Sort waypoints by name */ - sort() { + sortWaypoints() { this.waypoints.sort((a, b) => { if (!a.label) { return -1;