summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFaceDeer <derksenmobile@gmail.com>2017-01-22 01:29:47 -0700
committerFaceDeer <derksenmobile@gmail.com>2017-01-22 01:29:47 -0700
commit2d41c9ade114c961ce8910fdc585eec79d136025 (patch)
tree55fd735b8ef2d2326dce0b9bd556625e8640ffe4
parent6fdd5565ea5466b11d74dc9d5a874078fbe91a74 (diff)
Crash bug in awards.lua
-rw-r--r--awards.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/awards.lua b/awards.lua
index dc2b73e..283a9a6 100644
--- a/awards.lua
+++ b/awards.lua
@@ -20,17 +20,17 @@ digtron.award_item_dug = function (items_dropped, player)
if minetest.get_item_group(item, "tree") > 0 then
awards.tbv(data, "digtron_dug_groups")
awards.tbv(data["digtron_dug_groups"], "tree")
- data["digtron_dug_groups"]["tree"] = data["digtron_dug_groups"]["tree"] + count
+ data["digtron_dug_groups"]["tree"] = data["digtron_dug_groups"]["tree"] + 1
end
if minetest.get_item_group(item, "dirt") > 0 then
awards.tbv(data, "digtron_dug_groups")
awards.tbv(data["digtron_dug_groups"], "dirt")
- data["digtron_dug_groups"]["dirt"] = data["digtron_dug_groups"]["dirt"] + count
+ data["digtron_dug_groups"]["dirt"] = data["digtron_dug_groups"]["dirt"] + 1
end
if minetest.get_item_group(item, "grass") > 0 then
awards.tbv(data, "digtron_dug_groups")
awards.tbv(data["digtron_dug_groups"], "grass")
- data["digtron_dug_groups"]["grass"] = data["digtron_dug_groups"]["grass"] + count
+ data["digtron_dug_groups"]["grass"] = data["digtron_dug_groups"]["grass"] + 1
end
end