aparently syncing lifetime components break twitch integration

This commit is contained in:
bgkillas 2024-10-10 08:21:32 -04:00
parent 3aadc58596
commit 8543a0a3e9

View file

@ -17,7 +17,7 @@ function effect_sync.get_ent_effects(entity, perks)
local list = {}
for _, ent in ipairs(EntityGetAllChildren(entity) or {}) do
-- Do not include disabled components here
if EntityHasTag(ent, "projectile") or EntityGetFirstComponentIncludingDisabled(ent, "LifetimeComponent") ~= nil then
if EntityHasTag(ent, "projectile") then --or EntityGetFirstComponentIncludingDisabled(ent, "LifetimeComponent") ~= nil then
table.insert(list, ent)
else
local com = EntityGetFirstComponent(ent, "GameEffectComponent")