check actual block for out of bounds
This commit is contained in:
parent
04ef9e3432
commit
4196fd0c4f
1 changed files with 2 additions and 2 deletions
4
tool.lua
4
tool.lua
|
|
@ -81,8 +81,8 @@ minetest.register_craftitem("protector:tool", {
|
|||
return
|
||||
end
|
||||
|
||||
-- do not place protector out of map bounds
|
||||
if minetest.find_node_near(pos, 1, {"ignore", "mcl_core:bedrock"}) then
|
||||
-- do not place protector out of map bounds or replace bedrock
|
||||
if #minetest.find_nodes_in_area(pos, pos, {"ignore", "mcl_core:bedrock"}) > 0 then
|
||||
|
||||
minetest.chat_send_player(name, S("Out of bounds!"))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue