diff --git a/Content.Server/FloofStation/Traits/VampirismSystem.cs b/Content.Server/FloofStation/Traits/VampirismSystem.cs index 7c2919a4eec..17c9ea9abe3 100644 --- a/Content.Server/FloofStation/Traits/VampirismSystem.cs +++ b/Content.Server/FloofStation/Traits/VampirismSystem.cs @@ -1,6 +1,7 @@ using Content.Server.Body.Components; using Content.Server.Floofstation.Traits.Components; using Content.Server.Vampiric; +using Content.Shared.Body.Components; using Content.Shared.Body.Systems; namespace Content.Server.Floofstation.Traits; @@ -18,13 +19,10 @@ private void OnInitVampire(Entity ent, ref MapInitEvent args { EnsureBloodSucker(ent); - Log.Info($"Init vampire: {ent.Owner}"); - - if (!_body.TryGetBodyOrganComponents(ent, out var comps)) + if (!TryComp(ent, out var body) + || !_body.TryGetBodyOrganComponents(ent, out var comps, body)) return; - Log.Info($"Init vampire: {ent.Owner}"); - foreach (var (metabolizer, organ) in comps) { if (!TryComp(organ.Owner, out var stomach))