From 9d5db547f09bc568d095296c4885c78e8c7c56d4 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Mon, 27 Jul 2015 17:51:58 +0200 Subject: took care of unregistered-globals-warnings --- init.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'init.lua') diff --git a/init.lua b/init.lua index d9c094a..5573569 100644 --- a/init.lua +++ b/init.lua @@ -4,6 +4,9 @@ -- License: GPLv3 -- -- Modified: +-- 27.07.15 Moved into its own repository. +-- Made sure textures and craft receipe indigrents are available or can be replaced. +-- Took care of "unregistered globals" warnings. -- 23.01.14 Added conversion receipes in case of installed castle-mod (has its own anvil) -- 23.01.14 Added hammer and anvil as decoration and for repairing tools. -- Added hatches (wood and steel). @@ -19,6 +22,13 @@ cottages = {} +-- Boilerplate to support localized strings if intllib mod is installed. +if minetest.get_modpath( "intllib" ) and intllib then + cottages.S = intllib.Getter() +else + cottages.S = function(s) return s end +end + --cottages.config_use_mesh_barrel = false; --cottages.config_use_mesh_handmill = true; @@ -39,3 +49,6 @@ dofile(minetest.get_modpath("cottages").."/nodes_barrel.lua"); -- this is only required and useful if you run versions of the random_buildings mod where the nodes where defined inside that mod dofile(minetest.get_modpath("cottages").."/alias.lua"); + +-- variable no longer needed +cottages.S = nil; -- cgit v1.2.3