Skip to content

Commit

Permalink
fix lights again (legacy)
Browse files Browse the repository at this point in the history
strange underflow bug
  • Loading branch information
pingu7867 committed Nov 10, 2023
1 parent 40734fd commit ab7d14d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/pac3/core/client/parts/legacy/light.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ local DynamicLight = DynamicLight

function PART:OnDraw()
local pos = self:GetDrawPosition()
local light = self.light or DynamicLight(tonumber(self:GetPrintUniqueID(), 16))
local light = self.light or DynamicLight(tonumber(string.sub(self:GetPrintUniqueID(),1,7), 16))

light.Pos = pos

Expand Down Expand Up @@ -50,4 +50,4 @@ function PART:OnHide()
end
end

BUILDER:Register()
BUILDER:Register()

0 comments on commit ab7d14d

Please sign in to comment.