mirror of
https://github.com/mt-mods/unifieddyes.git
synced 2024-11-26 01:13:49 +01:00
respect protection
This commit is contained in:
parent
ca1ab44e78
commit
409ee441c4
5
init.lua
5
init.lua
@ -655,6 +655,11 @@ function unifieddyes.on_airbrush(itemstack, player, pointed_thing)
|
|||||||
local def = minetest.registered_items[node.name]
|
local def = minetest.registered_items[node.name]
|
||||||
if not def then return end
|
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
|
if not def.palette then
|
||||||
minetest.chat_send_player(player_name, "That node can't be colored.")
|
minetest.chat_send_player(player_name, "That node can't be colored.")
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user