add apply last received data

This commit is contained in:
rootdarkarchon
2023-01-30 11:46:17 +01:00
parent c403e7b45b
commit 66fb103c94
5 changed files with 24 additions and 6 deletions

View File

@@ -83,7 +83,7 @@ public class Pair
ApplyLastReceivedData();
}
public void ApplyLastReceivedData()
public void ApplyLastReceivedData(bool forced = false)
{
if (CachedPlayer == null) return;
if (LastReceivedCharacterData == null) return;
@@ -95,7 +95,7 @@ public class Pair
ShownPalettePlusWarning = _configService.Current.DisableOptionalPluginWarnings,
};
CachedPlayer.ApplyCharacterData(RemoveNotSyncedFiles(LastReceivedCharacterData.DeepClone())!, _pluginWarnings);
CachedPlayer.ApplyCharacterData(RemoveNotSyncedFiles(LastReceivedCharacterData.DeepClone())!, _pluginWarnings, forced);
}
private API.Data.CharacterData? RemoveNotSyncedFiles(API.Data.CharacterData? data)