forked from nalc/homedecor_modpack
fix nil function call in ownership code.
This commit is contained in:
parent
e4c02a82d6
commit
1ab5263a55
8
init.lua
8
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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user