mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 18:37:22 +01:00
fix issue with player disposal, fix issue with penumbra mass redraw
This commit is contained in:
parent
03414c9c94
commit
949cfd0c0e
3 changed files with 6 additions and 5 deletions
|
|
@ -313,6 +313,7 @@ public class CachedPlayer
|
|||
}
|
||||
finally
|
||||
{
|
||||
_cachedData = new();
|
||||
PlayerName = string.Empty;
|
||||
PlayerCharacter = null;
|
||||
IsVisible = false;
|
||||
|
|
@ -321,7 +322,7 @@ public class CachedPlayer
|
|||
|
||||
public void InitializePlayer(PlayerCharacter character, CharacterCacheDto? cache)
|
||||
{
|
||||
Logger.Debug("Initializing Player " + this);
|
||||
Logger.Debug("Initializing Player " + this + " has cache: " + (cache != null));
|
||||
IsVisible = true;
|
||||
PlayerName = character.Name.ToString();
|
||||
PlayerCharacter = character;
|
||||
|
|
@ -375,7 +376,7 @@ public class CachedPlayer
|
|||
|
||||
if (RequestedPenumbraRedraw == false)
|
||||
{
|
||||
Logger.Warn("Unauthorized character change detected");
|
||||
Logger.Debug("Unauthorized character change detected");
|
||||
ApplyCustomizationData(ObjectKind.Player);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue