mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-13 12:14:18 +01:00
Fix redraw.
This commit is contained in:
parent
1cf0e2f70e
commit
2a01b328e1
1 changed files with 5 additions and 3 deletions
|
|
@ -95,6 +95,10 @@ public class PenumbraAutoRedraw : IDisposable, IRequiredService
|
|||
else if (_config.AutoRedrawEquipOnChanges)
|
||||
{
|
||||
// Only update once per frame.
|
||||
var playerName = _penumbra.GetCurrentPlayerCollection();
|
||||
if (playerName == name)
|
||||
return;
|
||||
|
||||
var currentFrame = _framework.LastUpdateUTC;
|
||||
if (currentFrame == _frame)
|
||||
return;
|
||||
|
|
@ -102,9 +106,7 @@ public class PenumbraAutoRedraw : IDisposable, IRequiredService
|
|||
_frame = currentFrame;
|
||||
_framework.RunOnFrameworkThread(() =>
|
||||
{
|
||||
var playerName = _penumbra.GetCurrentPlayerCollection();
|
||||
if (playerName == name)
|
||||
_state.ReapplyState(_objects.Player, StateSource.IpcManual);
|
||||
_state.ReapplyState(_objects.Player, StateSource.IpcManual);
|
||||
Glamourer.Log.Debug(
|
||||
$"Automatically applied mod settings of type {type} to {_objects.PlayerData.Identifier.Incognito(null)} (Local Player).");
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue