diff options
author | Sokomine <wegwerf@anarres.dyndns.org> | 2015-07-27 17:51:58 +0200 |
---|---|---|
committer | Sokomine <wegwerf@anarres.dyndns.org> | 2015-07-27 17:51:58 +0200 |
commit | 9d5db547f09bc568d095296c4885c78e8c7c56d4 (patch) | |
tree | 35c0c88cef86102b4405bdcf6d298286001de0f5 /init.lua | |
parent | 2d05ae5b7d76128f423b05e36ba9171c9769d937 (diff) |
took care of unregistered-globals-warnings
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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; |