Vanilla-Expanded / VanillaExpandedFramework

Vanilla Expanded Framework for RimWorld
Other
74 stars 37 forks source link

Error when pawn has no Mood need. #114

Open Drunkender opened 1 week ago

Drunkender commented 1 week ago

When using the EBSG_Emotionless Gene from Expanded Archite Genes or using a hediff to remove a pawns mood need you get the following error repeatedly every couple of minutes.

System.InvalidOperationException: Sequence contains no elements [Ref A9DAD7B1] at System.Linq.Enumerable.Average[TSource] (System.Collections.Generic.IEnumerable1[T] source, System.Func2[T,TResult] selector) [0x00030] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at RimWorld.HistoryAutoRecorderWorker_ColonistMood.PullRecord () [0x00039] in <2a40c3593b334f29ac3cb3d32d652351>:0 at RimWorld.HistoryAutoRecorder.Tick () [0x00030] in <2a40c3593b334f29ac3cb3d32d652351>:0 at RimWorld.HistoryAutoRecorderGroup.Tick () [0x00010] in <2a40c3593b334f29ac3cb3d32d652351>:0 at RimWorld.History.HistoryTick () [0x00010] in <2a40c3593b334f29ac3cb3d32d652351>:0 at Verse.TickManager.DoSingleTick () [0x0028a] in <2a40c3593b334f29ac3cb3d32d652351>:0

  • PREFIX OskarPotocki.VFECore: Void VFECore.DoSingleTick_Patch:Prefix(Stopwatch& __state)
  • POSTFIX OskarPotocki.VFECore: Void VFECore.DoSingleTick_Patch:Postfix(Stopwatch __state) UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (string) (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.DoSingleTick_Patch2 (Verse.TickManager) Verse.TickManager:TickManagerUpdate () Verse.Game:UpdatePlay () Verse.Root_Play:Update ()