aboutsummaryrefslogtreecommitdiffstats
path: root/js/craftmine.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/craftmine.js')
-rw-r--r--js/craftmine.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/craftmine.js b/js/craftmine.js
index 608efb7..d649305 100644
--- a/js/craftmine.js
+++ b/js/craftmine.js
@@ -50,10 +50,11 @@ function withdrawMine() {
function initCraftMine() {
sendRequest("craftmine.php", "op=getCraftMine", function(ret) {
data.gold = parseInt(ret.gold); // Server's response is a string
+ data.mine = 0; // Reset mine
if(ret.shop) displayShop(ret.shop);
displayInventory(ret.inventory);
data.miners = parseInt(ret.miners);
- updateData("gold","miners");
+ updateData("gold", "mine", "miners");
})
}