This commit is contained in:
RisaDev
2024-10-16 23:50:52 +03:00
parent d6975591fe
commit 497ab29de4
4 changed files with 31 additions and 8 deletions

View File

@@ -470,10 +470,27 @@ public unsafe sealed class ArmatureManager : IDisposable
if (type == ProfileChanged.Type.TemporaryProfileAdded)
{
if (!profile.Character.IsValid || !Armatures.ContainsKey(profile.Character)) //todo: any world support
if (!profile.Character.IsValid || !Armatures.ContainsKey(profile.Character)) //temporary profiles are never using AnyWorld identifiers so we should be fine here
return;
//todo: remove this later
/*Armature? armature = null;
foreach(var kvPair in Armatures)
{
//todo: check mount/companion
if(kvPair.Key.CompareIgnoringOwnership(profile.Character) &&
(kvPair.Key.Type != IdentifierType.Owned || kvPair.Key.IsOwnedByLocalPlayer()))
{
armature = kvPair.Value;
break;
}
}
if (armature == null)
return;*/
var armature = Armatures[profile.Character];
if (armature.Profile == profile)
return;