From 1ab5263a559f1075b25835c82b86e210cb844e7a Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Wed, 16 Oct 2013 09:59:19 -0400 Subject: [PATCH] fix nil function call in ownership code. --- init.lua | 8 -------- ownership.lua | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/init.lua b/init.lua index 4ecb1067..1cd3ba6b 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 e057e270..70491d93 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