mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-01-02 13:53:42 +01:00
Fix some cases of Glamourer not respecting the Apply Fixed Designs setting.
This commit is contained in:
parent
131844e54f
commit
f21d430811
2 changed files with 13 additions and 6 deletions
|
|
@ -6,6 +6,7 @@ using Dalamud.Game.ClientState.Objects.Types;
|
|||
using Dalamud.Logging;
|
||||
using Glamourer.FileSystem;
|
||||
using Penumbra.GameData.Enums;
|
||||
using Penumbra.PlayerWatch;
|
||||
|
||||
namespace Glamourer.Designs
|
||||
{
|
||||
|
|
@ -57,9 +58,15 @@ namespace Glamourer.Designs
|
|||
}
|
||||
|
||||
design.Enabled = true;
|
||||
if (Dalamud.Objects.FirstOrDefault(o => o.ObjectKind == ObjectKind.Player && o.Name.ToString() == design.Name)
|
||||
is Character character)
|
||||
OnPlayerChange(character);
|
||||
if (Glamourer.Config.ApplyFixedDesigns)
|
||||
{
|
||||
var character =
|
||||
CharacterFactory.Convert(Dalamud.Objects.FirstOrDefault(o
|
||||
=> o.ObjectKind == ObjectKind.Player && o.Name.ToString() == design.Name));
|
||||
if (character != null)
|
||||
OnPlayerChange(character);
|
||||
}
|
||||
|
||||
return changes;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue