diff --git a/init.lua b/init.lua index 4ecb106..1cd3ba6 100644 --- a/init.lua +++ b/init.lua @@ -13,7 +13,6 @@ homedecor = {} - homedecor.disable_signs = minetest.setting_getbool("homedecor.disable_signs") homedecor.debug = 0 @@ -21,13 +20,6 @@ homedecor.modpath = minetest.get_modpath("homedecor") homedecor.intllib_modpath = minetest.get_modpath("intllib") -- Boilerplate to support localized strings if intllib mod is installed. -local S -if homedecor.intllib_modpath then - dofile(homedecor.intllib_modpath.."/intllib.lua") - S = intllib.Getter(minetest.get_current_modname()) -else - S = function ( s ) return s end -end local dbg = function(s) if homedecor.debug == 1 then diff --git a/ownership.lua b/ownership.lua index e057e27..70491d9 100644 --- a/ownership.lua +++ b/ownership.lua @@ -1,3 +1,11 @@ +local S +if homedecor.intllib_modpath then + dofile(homedecor.intllib_modpath.."/intllib.lua") + S = intllib.Getter(minetest.get_current_modname()) +else + S = function ( s ) return s end +end + function homedecor:node_is_owned(pos, placer) local ownername = false if type(IsPlayerNodeOwner) == "function" then -- node_ownership mod