Skip to content

Commit

Permalink
Add cl hologram object wrapping. Fixes: #1530
Browse files Browse the repository at this point in the history
  • Loading branch information
thegrb93 committed Oct 7, 2023
1 parent 8a0344c commit 9543101
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/starfall/instance.lua
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@ function SF.Instance:BuildEnvironment()
if safe_types[TypeID(object)] then
return object
end
-- Clientside holograms don't have a gmod metatype so check manually
if isentity(object) and object.IsSFHologram then
return self.Types.Hologram.Wrap(object)
end
end
self.WrapObject = WrapObject

Expand Down

0 comments on commit 9543101

Please sign in to comment.