mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
NetworkServer.DestroyObject: removed ClientScene.SetLocalObject call. It only sets it to null, which is pointless because the first line in DestroyObject removes it from spawned dictionary already.
This commit is contained in:
parent
4b3dd1004e
commit
9c8f6bb5af
@ -1048,7 +1048,6 @@ static void DestroyObject(NetworkIdentity uv, bool destroyServerObject)
|
|||||||
if (NetworkClient.active && s_LocalClientActive)
|
if (NetworkClient.active && s_LocalClientActive)
|
||||||
{
|
{
|
||||||
uv.OnNetworkDestroy();
|
uv.OnNetworkDestroy();
|
||||||
ClientScene.SetLocalObject(msg.netId, null);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// when unspawning, dont destroy the server's object
|
// when unspawning, dont destroy the server's object
|
||||||
|
Loading…
Reference in New Issue
Block a user