diff --git a/Content.Server/DeltaV/Abilities/Psionics/PrecognitionPowerSystem.cs b/Content.Server/DeltaV/Abilities/Psionics/PrecognitionPowerSystem.cs index 79a56066e31..5edf08e097c 100644 --- a/Content.Server/DeltaV/Abilities/Psionics/PrecognitionPowerSystem.cs +++ b/Content.Server/DeltaV/Abilities/Psionics/PrecognitionPowerSystem.cs @@ -45,6 +45,7 @@ public sealed class PrecognitionPowerSystem : EntitySystem public override void Initialize() { base.Initialize(); + CachePrecognitionResults(); SubscribeLocalEvent(OnMapInit); SubscribeLocalEvent(OnShutdown); @@ -161,12 +162,12 @@ private void OnDoAfter(EntityUid uid, PrecognitionPowerComponent component, Prec /// Gets the precognition result message corosponding to the passed event id. /// /// message string corosponding to the event id passed - private LocId GetResultMessage(EntProtoId eventId) + private LocId? GetResultMessage(EntProtoId eventId) { if (!Results.TryGetValue(eventId, out var result)) { Log.Error($"Prototype {eventId} does not have an associated precognitionResult!"); - return string.Empty; + return null; } return result.Message;