From 2f399aee7836c6a3af7869e4f87151b7ea26cb7f Mon Sep 17 00:00:00 2001 From: "Tai @ Flex" Date: Mon, 5 Dec 2016 03:54:23 +0000 Subject: [PATCH] flesh out base protection routine --- protection.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/protection.lua b/protection.lua index 4360b08..3761587 100644 --- a/protection.lua +++ b/protection.lua @@ -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)