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 (networking.debug <= DebugLevel.Error)
|
||||
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)
|
||||
networking.DebugLog("Receive Change Possessesable Avatar " + retrievedAvatar);
|
||||
|
||||
remoteHumanoid.LocalChangeAvatar(retrievedAvatar);
|
||||
|
||||
remoteHumanoid.LocalChangeAvatar(retrievedAvatar);
|
||||
}
|
||||
networking.humanoids.Add(remoteHumanoid);
|
||||
if (OnNewRemoteHumanoid != null)
|
||||
OnNewRemoteHumanoid(remoteHumanoid);
|
||||
|
@ -138,7 +138,7 @@ namespace Passer.Humanoid {
|
||||
|
||||
humanoid.humanoidNetworking = this;
|
||||
|
||||
((IHumanoidNetworking)this).InstantiateHumanoid(humanoid);
|
||||
//((IHumanoidNetworking)this).InstantiateHumanoid(humanoid);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -287,7 +287,8 @@ namespace Passer {
|
||||
|
||||
if (possessableLocation == "") {
|
||||
Debug.Log("Cannot retrieve Possessable: location is not set");
|
||||
yield return null;
|
||||
//yield return null;
|
||||
callback(null);
|
||||
}
|
||||
else {
|
||||
Debug.Log("Cache size: " + cache.Count);
|
||||
|
Loading…
x
Reference in New Issue
Block a user