Skip to content

Commit

Permalink
Make hologram unable to create during rendering (#1792)
Browse files Browse the repository at this point in the history
  • Loading branch information
thegrb93 authored Jul 24, 2024
1 parent 4aba6f7 commit 6f7369f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/starfall/libs_sh/hologram.lua
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ function hologram_library.create(pos, ang, model, scale)
return wrap(holoent)
end
else
if instance.data.render.isRendering then SF.Throw("Can't create hologram while rendering!", 2) end
holoent = ents.CreateClientside("starfall_hologram")
if IsValid(holoent) then
holoent.SFHoloOwner = ply
Expand Down

0 comments on commit 6f7369f

Please sign in to comment.