Fixed not being able to follow players.
This commit is contained in:
parent
d06a0ecb4b
commit
78041a4168
1 changed files with 3 additions and 1 deletions
|
|
@ -517,7 +517,9 @@ DynMap.prototype = {
|
||||||
.text(player.name)
|
.text(player.name)
|
||||||
)
|
)
|
||||||
.click(function(e) {
|
.click(function(e) {
|
||||||
me.followPlayer(null);
|
if (me.followingPlayer !== player) {
|
||||||
|
me.followPlayer(null);
|
||||||
|
}
|
||||||
me.panTo(player.location);
|
me.panTo(player.location);
|
||||||
})
|
})
|
||||||
.appendTo(me.playerlist);
|
.appendTo(me.playerlist);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue