Added protection to tool
parent
4f8bc4f271
commit
0c46aca087
|
@ -42,6 +42,9 @@ minetest.register_tool( "mycorners_light:corner_tool",{
|
||||||
if pointed_thing.type ~= "node" then
|
if pointed_thing.type ~= "node" then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
if minetest.is_protected(pos, user:get_player_name()) then
|
||||||
|
return
|
||||||
|
end
|
||||||
for i in ipairs(cornerblock) do
|
for i in ipairs(cornerblock) do
|
||||||
local mat = cornerblock[i][1]
|
local mat = cornerblock[i][1]
|
||||||
local img = cornerblock[i][2]
|
local img = cornerblock[i][2]
|
||||||
|
|
Loading…
Reference in New Issue