From 56d08f2f49ffc8de30cc37e7c99c2164f8555d7d Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Thu, 11 Jun 2015 17:35:32 +0100 Subject: Refactor awards.unlock --- triggers.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'triggers.lua') 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) -- cgit v1.2.3