From c034a109516634ea458c50ebfebc020af59cc0af Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Sun, 4 Sep 2011 02:07:15 -0500 Subject: [PATCH] Finish revert --- web/js/minecraft.js | 38 +++----------------------------------- 1 file changed, 3 insertions(+), 35 deletions(-) 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;