From 83642a62915d94e27656b1fed6e9680cf26c9d84 Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Sun, 4 Sep 2011 02:03:52 -0500 Subject: [PATCH] Put it back - not sure other fix did anything --- 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;