summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--triggers.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/triggers.lua b/triggers.lua
index 0536ec6..e19e1e2 100644
--- a/triggers.lua
+++ b/triggers.lua
@@ -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