Added protection for tool
This commit is contained in:
parent
35d762134b
commit
ae3f51b023
@ -71,6 +71,9 @@ minetest.register_tool( "mycorners:corner_tool",{
|
||||
if pointed_thing.type ~= "node" then
|
||||
return
|
||||
end
|
||||
if minetest.is_protected(pos, user:get_player_name()) then
|
||||
return
|
||||
end
|
||||
for i in ipairs(cornerblock) do
|
||||
local mat = cornerblock[i][1]
|
||||
local img = cornerblock[i][2]
|
||||
|
Loading…
x
Reference in New Issue
Block a user