Add NoSnapService, undo application on plugin unload

This commit is contained in:
Loporrit
2025-07-24 16:32:45 +00:00
parent c455eb0009
commit 10366695f2
5 changed files with 80 additions and 5 deletions

View File

@@ -171,6 +171,11 @@ public class Pair : DisposableMediatorSubscriberBase
if (_serverConfigurationManager.IsUidBlacklisted(UserData.UID))
HoldApplication("Blacklist", maxValue: 1);
if (NoSnapService.AnyLoaded)
HoldApplication("NoSnap", maxValue: 1);
else
UnholdApplication("NoSnap", skipApplication: true);
CachedPlayer.ApplyCharacterData(Guid.NewGuid(), RemoveNotSyncedFiles(LastReceivedCharacterData.DeepClone())!, forced);
}