Skip to content
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

Fix for freecam nullpointer spam #1725

Merged
merged 1 commit into from
Feb 11, 2022

Conversation

dartasen
Copy link
Member

@dartasen dartasen commented Feb 5, 2022

Freecam does set the transform of the player to null and disable the camera gameobject causing various nullpointer inside our movement handler code.

[22:20:44.762] [ERR-UNITY] NullReferenceException: Object reference not set to an instance of an object
NitroxClient.MonoBehaviours.PlayerMovement.GetVehicleMovement () (at <76f1b38f81a64b09bc01bdb03a9086bb>:0)
NitroxClient.MonoBehaviours.PlayerMovement.Update () (at <76f1b38f81a64b09bc01bdb03a9086bb>:0)

Copy link
Member

@Jannify Jannify left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code wise seems fine. Would include it in RC-test-session.

@Measurity Measurity merged commit 4475c8b into SubnauticaNitrox:master Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants