From 409ee441c46675fe6ecc44e67a4060bf3edb7352 Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Sun, 26 Aug 2018 08:59:28 -0400 Subject: [PATCH] respect protection --- init.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/init.lua b/init.lua index c229e29..5b08a10 100644 --- a/init.lua +++ b/init.lua @@ -655,6 +655,11 @@ function unifieddyes.on_airbrush(itemstack, player, pointed_thing) local def = minetest.registered_items[node.name] if not def then return end + if minetest.is_protected(pos, player_name) then + minetest.chat_send_player(player_name, "Sorry, someone else owns that node.") + return + end + if not def.palette then minetest.chat_send_player(player_name, "That node can't be colored.") return