summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorrubenwardy <rubenwardy@gmail.com>2015-06-10 17:45:18 +0100
committerrubenwardy <rubenwardy@gmail.com>2016-07-29 15:58:30 +0100
commit85efc6704932898bf6c98ff5c043a989ce83f293 (patch)
tree3a8384a43b57dee609b3fb7bf893083c62eaba7e /init.lua
parent85a40d24880964dfdf6c3e0db92ce5b9bbca0dc5 (diff)
Move helpers and chat commands to separate files
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/init.lua b/init.lua
index f1a213c..c4bb855 100644
--- a/init.lua
+++ b/init.lua
@@ -13,6 +13,7 @@ else
end
dofile(minetest.get_modpath("awards").."/api.lua")
+dofile(minetest.get_modpath("awards").."/chat_commands.lua")
-- Light it up
awards.register_achievement("award_lightitup",{
@@ -328,7 +329,7 @@ awards.register_onDeath(function(player,data)
local pos = player:getpos()
if pos and minetest.find_node_near(pos, 2, "fire:basic_flame") ~= nil then
return "award_burn"
- end
+ end
return nil
end)
@@ -341,7 +342,7 @@ awards.register_onDeath(function(player,data)
local pos = player:getpos()
if pos and minetest.find_node_near(pos, 2, "default:lava_flowing") ~= nil then
return "award_in_the_flow"
- end
+ end
return nil
end)
@@ -354,7 +355,7 @@ awards.register_onDeath(function(player,data)
local pos = player:getpos()
if pos and minetest.find_node_near(pos, 5, "default:stone_with_diamond") ~= nil then
return "award_this_is_sad"
- end
+ end
return nil
end)
@@ -367,7 +368,6 @@ awards.register_onDeath(function(player,data)
local pos = player:getpos()
if pos and minetest.find_node_near(pos, 5, "bones:bones") ~= nil then
return "award_the_stack"
- end
+ end
return nil
end)
-