Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
Techbot121 committed Jun 14, 2024
1 parent 7a0f550 commit 138c04b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/pac3/core/client/parts/event.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4213,6 +4213,8 @@ net.Receive("pac_update_healthbars", function()
local ent = net.ReadEntity()
local tbl = net.ReadTable()

if not IsValid(ent) then return end

ent.pac_healthbars = tbl

ent.pac_healthbars_layertotals = ent.pac_healthbars_layertotals or {}
Expand Down

0 comments on commit 138c04b

Please sign in to comment.