jpw1991 / chebs-necromancy

Cheb's Necromancy adds Necromancy to Valheim via craftable wands and structures. Minions will follow you, guard your base, and perform menial tasks.
The Unlicense
10 stars 4 forks source link

dumb exception #161

Closed jpw1991 closed 1 year ago

jpw1991 commented 1 year ago

Fix dumb exception:

[Error  : Unity Log] NullReferenceException
Stack trace:
UnityEngine.Transform.get_position () (at <c9fb31c2eee14ce4aeb36e4c61e154d8>:0)
ChebsNecromancy.Minions.AI.WoodcutterAI.<LookForCuttableObjects>b__7_1 (UnityEngine.Transform t) (at <edd51293aa7b4ef495a0dcf11cd0874f>:0)
System.Linq.CachingComparer`2[TElement,TKey].SetElement (TElement element) (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
System.Linq.OrderedEnumerable`1[TElement].TryGetFirst (System.Boolean& found) (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Boolean& found) (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source) (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
ChebsNecromancy.Minions.AI.WoodcutterAI.LookForCuttableObjects () (at <edd51293aa7b4ef495a0dcf11cd0874f>:0)
ChebsNecromancy.Minions.AI.WoodcutterAI.Update () (at <edd51293aa7b4ef495a0dcf11cd0874f>:0)
jpw1991 commented 1 year ago

should be fixed