mirror of
https://github.com/minetest-mods/digtron.git
synced 2024-11-19 21:33:43 +01:00
Crash bug in awards.lua
This commit is contained in:
parent
6fdd5565ea
commit
2d41c9ade1
@ -20,17 +20,17 @@ digtron.award_item_dug = function (items_dropped, player)
|
|||||||
if minetest.get_item_group(item, "tree") > 0 then
|
if minetest.get_item_group(item, "tree") > 0 then
|
||||||
awards.tbv(data, "digtron_dug_groups")
|
awards.tbv(data, "digtron_dug_groups")
|
||||||
awards.tbv(data["digtron_dug_groups"], "tree")
|
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
|
end
|
||||||
if minetest.get_item_group(item, "dirt") > 0 then
|
if minetest.get_item_group(item, "dirt") > 0 then
|
||||||
awards.tbv(data, "digtron_dug_groups")
|
awards.tbv(data, "digtron_dug_groups")
|
||||||
awards.tbv(data["digtron_dug_groups"], "dirt")
|
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
|
end
|
||||||
if minetest.get_item_group(item, "grass") > 0 then
|
if minetest.get_item_group(item, "grass") > 0 then
|
||||||
awards.tbv(data, "digtron_dug_groups")
|
awards.tbv(data, "digtron_dug_groups")
|
||||||
awards.tbv(data["digtron_dug_groups"], "grass")
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user