forked from mtcontrib/awards
fix bug
This commit is contained in:
parent
d2ba1d7c0f
commit
6bd01c2589
@ -54,8 +54,8 @@ minetest.register_on_dignode(function(pos, oldnode, digger)
|
|||||||
data['unlocked']={}
|
data['unlocked']={}
|
||||||
end
|
end
|
||||||
|
|
||||||
if res~=nil and (not data['unlocked'][res] or data['unlocked'][res]==false) then
|
if res~=nil and (not data['unlocked'][res] or data['unlocked'][res]==res) then
|
||||||
data['unlocked'][res]=true
|
data['unlocked'][res]=res
|
||||||
minetest.chat_send_player(playern, "Achievement Unlocked: "..res)
|
minetest.chat_send_player(playern, "Achievement Unlocked: "..res)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user