From 98e2407fecc8006c08edc7832ae036b671754a84 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Wed, 27 Jan 2016 12:11:36 +0000 Subject: [PATCH] Fixed protector overlap bug --- init.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 7a55283..1468f03 100644 --- a/init.lua +++ b/init.lua @@ -260,9 +260,7 @@ function protector.check_overlap(itemstack, placer, pointed_thing) return itemstack end - if not protector.can_dig(protector.radius * 2, pointed_thing.under, - placer:get_player_name(), true, 3) - or not protector.can_dig(protector.radius * 2, pointed_thing.above, + if not protector.can_dig(protector.radius * 2, pointed_thing.above, placer:get_player_name(), true, 3) then minetest.chat_send_player(placer:get_player_name(),