Closed Ghetaldus closed 3 years ago
NetworkClient.active is true in OnDestroy, so I am using that as workaround until isClient is fixed.
sorry for late reply @Ghetaldus we fixed this a few weeks ago in mirror and added a test to make sure it never happens again.
Versions (please complete the following information)
Describe the bug isClient is false in OnDestroy for summoned entities, like mounts and pets.
To Reproduce Steps to reproduce the behavior, please explain every single click that is needed:
Expected behavior isClient should be true in OnDestroy() for these.
System (please complete the following information): Windows 10
Additional context This have been working fine prior to 2.20 update, where we even got Mirror updated to v16.10.4. So I guess it has to do with something that have changed in Mirror. Also isClient works fine for Player.cs OnDestroy(). Issue is only for entities that are summoned by player.