Added protection for tool

This commit is contained in:
DonBatman 2016-01-04 05:42:19 -08:00
parent 35d762134b
commit ae3f51b023

View File

@ -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]