From 4ee62205ffb72ae7ec4ad5f503fd0273c37d58fb Mon Sep 17 00:00:00 2001 From: RisaDev <151885272+RisaDev@users.noreply.github.com> Date: Thu, 21 Nov 2024 20:36:12 +0300 Subject: [PATCH] Uh... yea, this is dumb --- CustomizePlus/Armatures/Services/ArmatureManager.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/CustomizePlus/Armatures/Services/ArmatureManager.cs b/CustomizePlus/Armatures/Services/ArmatureManager.cs index 6712bb0..4191623 100644 --- a/CustomizePlus/Armatures/Services/ArmatureManager.cs +++ b/CustomizePlus/Armatures/Services/ArmatureManager.cs @@ -133,19 +133,12 @@ public unsafe sealed class ArmatureManager : IDisposable var armature = kvPair.Value; //Only remove armatures which haven't been seen for a while //But remove armatures of special actors (like examine screen) right away - if (!_objectManager.Identifiers.TryGetValue(kvPair.Value.ActorIdentifier, out var actorData) && + if (!_objectManager.Identifiers.ContainsKey(kvPair.Value.ActorIdentifier) && (armature.LastSeen <= armatureExpirationDateTime || armature.ActorIdentifier.Type == IdentifierType.Special)) { _logger.Debug($"Removing armature {armature} because {kvPair.Key.IncognitoDebug()} is gone"); RemoveArmature(armature, ArmatureChanged.DeletionReason.Gone); - if(actorData.Objects != null) - { - //Reset root translation - foreach (var obj in actorData.Objects) - ApplyRootTranslation(armature, obj, true); - } - continue; }