diff options
author | rubenwardy <rubenwardy@gmail.com> | 2015-06-11 17:35:32 +0100 |
---|---|---|
committer | rubenwardy <rubenwardy@gmail.com> | 2016-07-29 16:03:30 +0100 |
commit | 56d08f2f49ffc8de30cc37e7c99c2164f8555d7d (patch) | |
tree | 615dda56b637103fb04d593196e4c973274ea8db /triggers.lua | |
parent | 79818c13555e12cc6d12f4855bcbf2d8441c9ce8 (diff) |
Refactor awards.unlock
Diffstat (limited to 'triggers.lua')
-rw-r--r-- | triggers.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/triggers.lua b/triggers.lua index f1383e8..3af3fe1 100644 --- a/triggers.lua +++ b/triggers.lua @@ -113,7 +113,7 @@ minetest.register_on_dignode(function(pos, oldnode, digger) end if res then - awards.give_achievement(playern,res) + awards.unlock(playern,res) end end end) @@ -167,7 +167,7 @@ minetest.register_on_placenode(function(pos, node, digger) end if res then - awards.give_achievement(playern,res) + awards.unlock(playern,res) end end end) @@ -253,7 +253,7 @@ minetest.register_on_dieplayer(function(player) end end if res ~= nil then - awards.give_achievement(name,res) + awards.unlock(name,res) end end end) @@ -285,7 +285,7 @@ minetest.register_on_joinplayer(function(player) end end if res ~= nil then - awards.give_achievement(name,res) + awards.unlock(name,res) end end end) @@ -318,7 +318,7 @@ minetest.register_on_chat_message(function(name, message) end end if res ~= nil then - awards.give_achievement(name,res) + awards.unlock(name,res) end end end) |