Don't wear brush if item is already the same color

master
Samuel Sieb 2016-03-08 23:50:36 -08:00
parent 42c6386c4e
commit c1706fcea3
1 changed files with 3 additions and 0 deletions

View File

@ -59,6 +59,9 @@ function stain_node(pos, node, col, itemstack)
for i, entry in ipairs(color_tab) do
local color = entry[1]
if ncolor == color then
if color == col then
return
end
nname = string.sub(nname, 1, s - 2)
break
end