summaryrefslogtreecommitdiff
path: root/triggers.lua
diff options
context:
space:
mode:
authorRubenwardy <anjayward@gmail.com>2013-02-22 19:16:30 +0000
committerRubenwardy <anjayward@gmail.com>2013-02-22 19:16:30 +0000
commit6bd01c258917f8d65c4b59c098ca1b48df8ef186 (patch)
tree24f876ddc5eb429b5713aa5a3ef037f57dbcbd1b /triggers.lua
parentd2ba1d7c0f7fc2b57b52f52970d94f3677daaab8 (diff)
fix bug
Diffstat (limited to 'triggers.lua')
-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