From c66a09dea30715b9dda7a58979a1ef17a73805c1 Mon Sep 17 00:00:00 2001 From: Det Date: Thu, 30 Jun 2022 19:06:54 -0300 Subject: [PATCH] PluginLog at OnFrameworkUpdate When using Fixed Designs with Glamourer, this line goes really wild for being on OnFrameworkUpdate, so I thought it would be nice to have it only when debugging. --- Penumbra.PlayerWatch/PlayerWatchBase.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Penumbra.PlayerWatch/PlayerWatchBase.cs b/Penumbra.PlayerWatch/PlayerWatchBase.cs index dd777043..5b670484 100644 --- a/Penumbra.PlayerWatch/PlayerWatchBase.cs +++ b/Penumbra.PlayerWatch/PlayerWatchBase.cs @@ -301,7 +301,11 @@ internal class PlayerWatchBase : IDisposable var id = GetId( character ); SeenActors.Add( id ); + +#if DEBUG PluginLog.Verbose( "Comparing Gear for {PlayerName:l} ({Id}) at 0x{Address:X}...", character.Name, id, character.Address.ToInt64() ); +#endif + if( !watch.FoundActors.TryGetValue( id, out var equip ) ) { equip = new CharacterEquipment( character );