Fix for skins on players with nicknames - send up account name as well
as display name.
This commit is contained in:
parent
5a7ecea7d2
commit
a3b680dd19
5 changed files with 11 additions and 6 deletions
|
|
@ -453,7 +453,8 @@ DynMap.prototype = {
|
|||
var player = me.players[update.name] = {
|
||||
name: update.name,
|
||||
location: new Location(me.worlds[update.world], parseFloat(update.x), parseFloat(update.y), parseFloat(update.z)),
|
||||
health: update.health
|
||||
health: update.health,
|
||||
account: update.account
|
||||
};
|
||||
|
||||
$(me).trigger('playeradded', [ player ]);
|
||||
|
|
@ -486,7 +487,7 @@ DynMap.prototype = {
|
|||
})
|
||||
.appendTo(me.playerlist);
|
||||
if (me.options.showplayerfacesinmenu) {
|
||||
getMinecraftHead(player.name, 16, function(head) {
|
||||
getMinecraftHead(player.account, 16, function(head) {
|
||||
$('img', playerIconContainer).remove();
|
||||
$(head).appendTo(playerIconContainer);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ componentconstructors['playermarkers'] = function(dynmap, configuration) {
|
|||
.text(player.name));
|
||||
|
||||
if (configuration.showplayerfaces) {
|
||||
getMinecraftHead(player.name, 32, function(head) {
|
||||
getMinecraftHead(player.account, 32, function(head) {
|
||||
$(head)
|
||||
.addClass('playericon')
|
||||
.prependTo(div);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue