mirror of
https://github.com/shadowscion/Primitive.git
synced 2025-03-04 03:02:58 -05:00
Only check for dormancy on clientside
This commit is contained in:
parent
6ff3f16542
commit
bfe17f1fb2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user