fix crash

This commit is contained in:
Vanessa Ezekowitz 2013-11-14 16:06:36 -05:00
parent 8d4ff14928
commit 861788a6a9

View File

@ -8,7 +8,7 @@ else
S = function ( s ) return s end S = function ( s ) return s end
end end
function ilights:node_is_owned(pos, placer) function ilights.node_is_owned(pos, placer)
local ownername = false local ownername = false
if type(IsPlayerNodeOwner) == "function" then -- node_ownership mod if type(IsPlayerNodeOwner) == "function" then -- node_ownership mod
if HasOwner(pos, placer) then -- returns true if the node is owned if HasOwner(pos, placer) then -- returns true if the node is owned