mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 18:07:22 +01:00
maybe fix issue with char data being accidentally yeeted without reason and sent empty
This commit is contained in:
parent
fc18b19a4b
commit
cf6b89454b
5 changed files with 66 additions and 40 deletions
|
|
@ -46,6 +46,9 @@ public class CharacterDataFactory
|
|||
return previousData;
|
||||
}
|
||||
|
||||
var previousFileReplacements = previousData.FileReplacements.ToDictionary(d => d.Key, d => d.Value);
|
||||
var previousGlamourerData = previousData.GlamourerString.ToDictionary(d => d.Key, d => d.Value);
|
||||
|
||||
try
|
||||
{
|
||||
return CreateCharacterData(previousData, objectKind, playerPointer, token);
|
||||
|
|
@ -53,15 +56,17 @@ public class CharacterDataFactory
|
|||
catch (OperationCanceledException)
|
||||
{
|
||||
Logger.Debug("Cancelled creating Character data");
|
||||
return previousData;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Logger.Warn("Failed to create " + objectKind + " data");
|
||||
Logger.Warn(e.Message);
|
||||
Logger.Warn(e.StackTrace ?? string.Empty);
|
||||
return previousData;
|
||||
}
|
||||
|
||||
previousData.FileReplacements = previousFileReplacements;
|
||||
previousData.GlamourerString = previousGlamourerData;
|
||||
return previousData;
|
||||
}
|
||||
|
||||
private (string, string) GetIndentationForInheritanceLevel(int inheritanceLevel)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue