mirror of
https://github.com/mt-mods/unifieddyes.git
synced 2024-11-26 17:33:49 +01:00
remove "already that color" chat msg (some found it annoying)
This commit is contained in:
parent
c9d7733d87
commit
4dde37c191
5
init.lua
5
init.lua
@ -690,10 +690,7 @@ function unifieddyes.on_airbrush(itemstack, player, pointed_thing)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local oldidx = node.param2 - fdir
|
local oldidx = node.param2 - fdir
|
||||||
if idx == oldidx then
|
if idx == oldidx then return end
|
||||||
minetest.chat_send_player(player_name, "That node is already "..string.sub(painting_with, 5)..".")
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local name = def.airbrush_replacement_node or node.name
|
local name = def.airbrush_replacement_node or node.name
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user