From 6f7369f6bd011531d354202f133c48bd5ca21c9a Mon Sep 17 00:00:00 2001 From: thegrb93 Date: Wed, 24 Jul 2024 17:58:04 -0400 Subject: [PATCH] Make hologram unable to create during rendering (#1792) --- lua/starfall/libs_sh/hologram.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/starfall/libs_sh/hologram.lua b/lua/starfall/libs_sh/hologram.lua index ea6c794f3..1fd7c5fc7 100644 --- a/lua/starfall/libs_sh/hologram.lua +++ b/lua/starfall/libs_sh/hologram.lua @@ -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