Added protection to tool

master
DonBatman 2016-01-04 05:46:58 -08:00
parent 4f8bc4f271
commit 0c46aca087
1 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,9 @@ minetest.register_tool( "mycorners_light: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]