Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thegrb93 committed Aug 13, 2024
1 parent 874eb3a commit 6edcc44
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lua/entities/starfall_hologram/cl_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ end

function ENT:SetClip(index, enabled, normal, origin, entity)
local clips = self.clips
local prevempty = table.Empty(clips)
local prevempty = table.IsEmpty(clips)
if enabled then
clips[index] = {normal = normal, origin = origin, entity = entity}
else
clips[index] = nil
end
if prevempty~=table.Empty(clips) then
if prevempty~=table.IsEmpty(clips) then
self.renderstack:makeDirty()
end
end
Expand Down Expand Up @@ -173,7 +173,8 @@ net.Receive("starfall_hologram_clips", function()
end
clips[index] = clip
end
if table.Empty(self.clips) ~= table.Empty(clips) then
print(table.IsEmpty(self.clips), table.IsEmpty(clips))
if table.IsEmpty(self.clips) ~= table.IsEmpty(clips) then
self.renderstack:makeDirty()
end
self.clips = clips
Expand Down

0 comments on commit 6edcc44

Please sign in to comment.