Fix unregistered double remote avatars when using local remotes
This commit is contained in:
parent
41409d627d
commit
71085cd6ee
@ -316,14 +316,14 @@ namespace Passer.Humanoid {
|
|||||||
if (retrievedAvatar == null) {
|
if (retrievedAvatar == null) {
|
||||||
if (networking.debug <= DebugLevel.Error)
|
if (networking.debug <= DebugLevel.Error)
|
||||||
Debug.LogError("Could not retrieve avatar.");
|
Debug.LogError("Could not retrieve avatar.");
|
||||||
return;
|
//return;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
if (networking.debug <= DebugLevel.Info)
|
||||||
|
networking.DebugLog("Receive Change Possessesable Avatar " + retrievedAvatar);
|
||||||
|
|
||||||
if (networking.debug <= DebugLevel.Info)
|
remoteHumanoid.LocalChangeAvatar(retrievedAvatar);
|
||||||
networking.DebugLog("Receive Change Possessesable Avatar " + retrievedAvatar);
|
}
|
||||||
|
|
||||||
remoteHumanoid.LocalChangeAvatar(retrievedAvatar);
|
|
||||||
|
|
||||||
networking.humanoids.Add(remoteHumanoid);
|
networking.humanoids.Add(remoteHumanoid);
|
||||||
if (OnNewRemoteHumanoid != null)
|
if (OnNewRemoteHumanoid != null)
|
||||||
OnNewRemoteHumanoid(remoteHumanoid);
|
OnNewRemoteHumanoid(remoteHumanoid);
|
||||||
|
@ -138,7 +138,7 @@ namespace Passer.Humanoid {
|
|||||||
|
|
||||||
humanoid.humanoidNetworking = this;
|
humanoid.humanoidNetworking = this;
|
||||||
|
|
||||||
((IHumanoidNetworking)this).InstantiateHumanoid(humanoid);
|
//((IHumanoidNetworking)this).InstantiateHumanoid(humanoid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -287,7 +287,8 @@ namespace Passer {
|
|||||||
|
|
||||||
if (possessableLocation == "") {
|
if (possessableLocation == "") {
|
||||||
Debug.Log("Cannot retrieve Possessable: location is not set");
|
Debug.Log("Cannot retrieve Possessable: location is not set");
|
||||||
yield return null;
|
//yield return null;
|
||||||
|
callback(null);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Debug.Log("Cache size: " + cache.Count);
|
Debug.Log("Cache size: " + cache.Count);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user