mirror of
https://notabug.org/TenPlus1/protector.git
synced 2025-01-10 09:57:29 +01:00
Fixed protector overlap bug
This commit is contained in:
parent
7fcb908732
commit
98e2407fec
4
init.lua
4
init.lua
@ -260,9 +260,7 @@ function protector.check_overlap(itemstack, placer, pointed_thing)
|
|||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
|
|
||||||
if not protector.can_dig(protector.radius * 2, pointed_thing.under,
|
if not protector.can_dig(protector.radius * 2, pointed_thing.above,
|
||||||
placer:get_player_name(), true, 3)
|
|
||||||
or not protector.can_dig(protector.radius * 2, pointed_thing.above,
|
|
||||||
placer:get_player_name(), true, 3) then
|
placer:get_player_name(), true, 3) then
|
||||||
|
|
||||||
minetest.chat_send_player(placer:get_player_name(),
|
minetest.chat_send_player(placer:get_player_name(),
|
||||||
|
Loading…
Reference in New Issue
Block a user