From 77d19db338b13b2667abfbf0ed99585a0d685d62 Mon Sep 17 00:00:00 2001 From: Thomas--S Date: Wed, 21 Oct 2020 19:04:41 +0200 Subject: [PATCH] Trowel: Add protection support Thanks to felix7 for finding and reporting the bug! --- tools/trowel.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/trowel.lua b/tools/trowel.lua index 69e9684..b907283 100644 --- a/tools/trowel.lua +++ b/tools/trowel.lua @@ -67,6 +67,10 @@ end local function replace_node(itemstack, placer, pointed_thing) if pointed_thing.type == "node" then local pos = pointed_thing.under + local name = placer:get_player_name() + if minetest.is_protected(pos, name) then + return + end local meta = M(pos) local node = minetest.get_node(pos) if minetest.get_item_group(node.name, "techage_trowel") == 1 then