Fixed protector overlap bug

This commit is contained in:
TenPlus1 2016-01-27 12:11:36 +00:00
parent 7fcb908732
commit 98e2407fec
1 changed files with 1 additions and 3 deletions

View File

@ -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(),