diff --git a/web/js/minecraft.js b/web/js/minecraft.js index b1ced802..fabe2867 100644 --- a/web/js/minecraft.js +++ b/web/js/minecraft.js @@ -9,44 +9,12 @@ function createMinecraftHead(player,size,completed,failed) { faceImage.src = dynmap.options.tileUrl + 'faces/' + size + 'x' + size + '/' + player + '.png'; } -var playerHeads = {}; - function getMinecraftHead(player,size,completed) { - var key = player + '.' + size; - var head = playerHeads[key]; - // Synchronous - if (!completed) { - return (!head || head.working) ? null : head; - } - - // Asynchronous - if (!head) { - playerHeads[key] = { working: true, hooks: [{f:completed}] }; - createMinecraftHead(player, size, function(head) { - hooks = playerHeads[key].hooks; - playerHeads[key] = head; - var i; - for(i=0;i= 0 && servertime < 13700;