-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Neckro Null Object #126
Comments
What commit is this? |
Newest master |
I'm thinking it can only be 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. |
Maybe this line? 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. |
The text was updated successfully, but these errors were encountered: