Fixed unfollowing when panning to another player.

This commit is contained in:
FrozenCow 2011-03-05 17:43:41 +01:00
parent a4564889df
commit 803867fbc9

View File

@ -526,7 +526,10 @@ DynMap.prototype = {
}) })
.text(player.name) .text(player.name)
) )
.click(function(e) { me.panTo(player.location); }) .click(function(e) {
me.followPlayer(null);
me.panTo(player.location);
})
.appendTo(me.playerlist); .appendTo(me.playerlist);
if (me.options.showplayerfacesinmenu) { if (me.options.showplayerfacesinmenu) {
getMinecraftHead(player.name, 16, function(head) { getMinecraftHead(player.name, 16, function(head) {