fix default light names

This commit is contained in:
techbot 2023-10-26 21:16:37 +02:00
parent 2bd77372a3
commit aec8bd6a28

View File

@ -40,7 +40,9 @@ function PART:RemoveLight()
end
function PART:GetNiceName()
local hue = pac.ColorToNames(self:GetColor())
-- forgot the reason why this was changed to be a 0-1 range anyway
local color = self:GetColor()
local hue = pac.ColorToNames({r = color[1] * 255, g = color[2] * 255, b = color[3] * 255})
return hue .. " light"
end