diff --git a/web/map.js b/web/map.js index c4c9611b..5d6c33d8 100644 --- a/web/map.js +++ b/web/map.js @@ -517,7 +517,9 @@ DynMap.prototype = { .text(player.name) ) .click(function(e) { - me.followPlayer(null); + if (me.followingPlayer !== player) { + me.followPlayer(null); + } me.panTo(player.location); }) .appendTo(me.playerlist);