BrickColors with the same name not equal

This elusive bug has been bothering me and I just figured out how to reproduce it.

local a = BrickColor.new("Deep orange")
local b = BrickColor.new(BrickColor.new("Deep orange").Color)
print(a, b, a == b)

they are the same color
but no

hold on, this thread just popped up

adding print(a.Number, b.Number) prints 1017 and 1005. they are different numbers, but they have the same name. that is bad

2 Likes

So it’s just Deep orange?

for i = 0, 127 do
	local a = BrickColor.palette(i)
	local b = BrickColor.new(a.Color)
	if a ~= b then
		print(i, a, b)
	end
end

looks like Rust also has the same problem. Deep orange and Rust.

Gold has a similar issue. Insert a brick and color it gold. Then compare that color to the color of the yellow domes on this steam engine: Pro Series: Pluto Locomotive - Roblox

I have noticed a problem with gold. My color palette was the wrong color for a couple colors, Gold and I think Lilac.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.