summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-04-04 17:37:43 +0100
committerrubenwardy <rw@rubenwardy.com>2018-04-04 17:37:43 +0100
commit7c5fd79b57fad2b9485d801eea07c1c9fedaabe9 (patch)
tree79ec666a5497999b3129fe925238040d3c48aa59 /init.lua
parentc579f862b6d4952bc56f2a0a402ad5c77e5b11f2 (diff)
Clean up formspec related code
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua14
1 files changed, 12 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 0207aae..ea4e6b2 100644
--- a/init.lua
+++ b/init.lua
@@ -25,11 +25,21 @@ awards.gettext, awards.ngettext = dofile(minetest.get_modpath("awards").."/intll
dofile(minetest.get_modpath("awards").."/api_helpers.lua")
dofile(minetest.get_modpath("awards").."/api.lua")
dofile(minetest.get_modpath("awards").."/chat_commands.lua")
-dofile(minetest.get_modpath("awards").."/sfinv.lua")
-dofile(minetest.get_modpath("awards").."/unified_inventory.lua")
+dofile(minetest.get_modpath("awards").."/gui.lua")
dofile(minetest.get_modpath("awards").."/triggers.lua")
-- dofile(minetest.get_modpath("awards").."/awards.lua")
+-- Backwards compatibility
+awards.give_achievement = awards.unlock
+awards.getFormspec = awards.get_formspec
+awards.showto = awards.show_to
+awards.register_onDig = awards.register_on_dig
+awards.register_onPlace = awards.register_on_place
+awards.register_onDeath = awards.register_on_death
+awards.register_onChat = awards.register_on_chat
+awards.register_onJoin = awards.register_on_join
+awards.register_onCraft = awards.register_on_craft
+
awards.register_achievement("award_saint_maclou",{
title = "Saint-Maclou",
description = "Place 20 coal checkers.",