mirror of
https://gitlab.com/rubenwardy/awards.git
synced 2025-02-18 08:33:44 +01:00
fix bug
This commit is contained in:
@ -54,8 +54,8 @@ minetest.register_on_dignode(function(pos, oldnode, digger)
|
||||
data['unlocked']={}
|
||||
end
|
||||
|
||||
if res~=nil and (not data['unlocked'][res] or data['unlocked'][res]==false) then
|
||||
data['unlocked'][res]=true
|
||||
if res~=nil and (not data['unlocked'][res] or data['unlocked'][res]==res) then
|
||||
data['unlocked'][res]=res
|
||||
minetest.chat_send_player(playern, "Achievement Unlocked: "..res)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user