fixed stone achievement bug
This commit is contained in:
parent
7a38e7151d
commit
d22736e608
@ -103,12 +103,13 @@ end
|
||||
local function on_dig(pos, oldnode, player)
|
||||
for aname, def in pairs(achievements.registered_achievements) do
|
||||
if def.dignode ~= nil then
|
||||
|
||||
if def.dignode == oldnode.name then
|
||||
achievements.trigger_achievement(player, aname)
|
||||
else
|
||||
local group = string.match(def.dignode, "group:(.*)")
|
||||
|
||||
if group and minetest.get_item_group(def.dignode, group) ~= 0 then
|
||||
if group and minetest.get_item_group(oldnode.name, group) ~= 0 then
|
||||
achievements.trigger_achievement(player, aname)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user