diff --git a/cornertool.lua b/cornertool.lua index e6ab076..b9d60da 100644 --- a/cornertool.lua +++ b/cornertool.lua @@ -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]