Closed jpw1991 closed 1 year ago
What commit is this?
Newest master
I'm thinking it can only be _monsterAI
:
private Container GetNearestDropOffPoint() {
// Container closestContainer;
Container closestContainer = FindClosest<Container>(DropoffPointRadius.Value, pieceMask,
c => c.GetInventory().GetEmptySlots() > 0);
if (closestContainer == null) return null;
// move toward that piece
_monsterAI.SetFollowTarget(closestContainer.gameObject);
return closestContainer;
}
It's a problem with the FindClosest method. Probably happens when no Containers or something. Thanks for finding this!
What's the NeckroStatus when this error occurs? Can't recreate the error by removing nearby containers.
It's a problem with the FindClosest method. Probably happens when no Containers or something. Thanks for finding this!
Maybe this line? .Where(t => t.GetComponent<ZNetView>().IsValid()) // TODO: explain
Perhaps no ZNetView is there
That seems to fix it for now, so I am going to release that as a hotfix and we can investigate better solutions later. Just gotta stop ppls games crashing etc.