From ae3f51b023fd4eeae9a1879bde19bba41436a440 Mon Sep 17 00:00:00 2001 From: DonBatman Date: Mon, 4 Jan 2016 05:42:19 -0800 Subject: [PATCH] Added protection for tool --- cornertool.lua | 3 +++ 1 file changed, 3 insertions(+) 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]