I got this spammed on console all the time causing a lot of lag:
[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
ProjectApparatus.Turret_CheckForPlayersInLineOfSight_Patch.Prefix (GameNetcodeStuff.PlayerControllerB& __result) (at :0)
(wrapper dynamic-method) Turret.DMD(Turret,single,bool)
Turret.Update () (at :0)
Steps To Reproduce
Inject
Host a game
Stay in front of a turrent, it dont activate
Expected Behavior
Turrents works and dont get lag because of error spam.
Describe the bug
When i host a game turrents dont work.
I got this spammed on console all the time causing a lot of lag:
[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object Stack trace: ProjectApparatus.Turret_CheckForPlayersInLineOfSight_Patch.Prefix (GameNetcodeStuff.PlayerControllerB& __result) (at:0)
(wrapper dynamic-method) Turret.DMD(Turret,single,bool)
Turret.Update () (at :0)
Steps To Reproduce
Expected Behavior
Turrents works and dont get lag because of error spam.
Additional context
No response