fix nil function call in ownership code.

This commit is contained in:
Vanessa Ezekowitz 2013-10-16 09:59:19 -04:00
parent e4c02a82d6
commit 1ab5263a55
2 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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