1
0
mirror of https://github.com/mt-mods/unifieddyes.git synced 2024-12-24 17:50:29 +01:00

respect protection

This commit is contained in:
Vanessa Dannenberg 2018-08-26 08:59:28 -04:00
parent ca1ab44e78
commit 409ee441c4

View File

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