mirror of
https://github.com/CapsAdmin/pac3.git
synced 2025-03-04 03:03:01 -05:00
fix multiple lights not working
This commit is contained in:
parent
aec8bd6a28
commit
d9f5431899
@ -20,7 +20,7 @@ BUILDER:EndStorableVars()
|
||||
|
||||
function PART:GetLight()
|
||||
if not self.light then
|
||||
self.light = DynamicLight(tonumber(pac.LocalPlayer:EntIndex()))
|
||||
self.light = DynamicLight(tonumber(self:GetPrintUniqueID(),16))
|
||||
end
|
||||
self.light.decay = 0
|
||||
self.light.dietime = math.huge
|
||||
@ -40,7 +40,6 @@ function PART:RemoveLight()
|
||||
end
|
||||
|
||||
function PART:GetNiceName()
|
||||
-- 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"
|
||||
|
Loading…
Reference in New Issue
Block a user