mirror of
https://github.com/CapsAdmin/pac3.git
synced 2025-03-04 03:03:01 -05:00
fix default light names
This commit is contained in:
parent
2bd77372a3
commit
aec8bd6a28
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user