Only check for dormancy on clientside

This commit is contained in:
Redox 2024-08-25 22:48:54 +02:00
parent 6ff3f16542
commit bfe17f1fb2

View File

@ -2,6 +2,9 @@ local entMeta = FindMetaTable( "Entity" )
local entIsDormant = entMeta.IsDormant
local entGetTable = entMeta.GetTable
local CLIENT = CLIENT
local SERVER = SERVER
local class = { Type = "anim", Base = "base_anim", Spawnable = false, AdminOnly = true, IsPrimitive = true }
@ -366,7 +369,7 @@ function class:PrimitiveSetThread( result )
end
function class:Think()
if entIsDormant( self ) then return end
if CLIENT and entIsDormant( self ) then return end
local entTable = entGetTable( self )
if entTable.primitive.init then