flesh out base protection routine

This commit is contained in:
Tai @ Flex 2016-12-05 03:54:23 +00:00
parent f068292ec0
commit 2f399aee78

View File

@ -4,8 +4,11 @@
local oldprotect = minetest.is_protected
local tardisprotect = function(pos,owner)
local tardisbounds = skytardis:getBoundsAt(pos)
local tardisprotect = function(pos,owner) -- owner is string?
local bounds = skytardis:getBoundsAt(pos)
if skytardis:checkOwner(bounds.pos1,owner) then
return true
end
-- pass it on
return oldprotect(pos,owner)