Skip to content

Commit

Permalink
dotnet format
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurochi51 committed Feb 10, 2024
1 parent 7618ef7 commit f84b406
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion TickTracker/IPC/PenumbraIpc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public PenumbraIpc(DalamudPluginInterface _pluginInterface, IPluginLog _pluginLo
{
throw new NotSupportedException("Penumbra API out of date. Version " + penumbraApiVersion.Breaking.ToString(CultureInfo.InvariantCulture));
}
if(penumbraApiVersion.FeatureLevel is not 0 or 23)
if (penumbraApiVersion.FeatureLevel is not 0 or 23)
{
log.Debug("Penumbra API Feature Level {ver}", penumbraApiVersion.FeatureLevel);
}
Expand Down
6 changes: 3 additions & 3 deletions TickTracker/TickTracker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -491,17 +491,17 @@ private unsafe void UpdateBarState(PlayerCharacter player)
var shouldShowHPBar = ShowBar(inCombat, player.CurrentHp == player.MaxHp, Enemy) && !inDuelingArea;
var shouldShowMPBar = ShowBar(inCombat, player.CurrentMp == player.MaxMp, Enemy) && !inDuelingArea && !althideForMeleeRangedDPS;
var shouldShowGPBar = isDiscipleOfTheLand && (!config.HideOnFullResource || player.CurrentGp != player.MaxGp) && !inDuelingArea;

HPBarWindow.IsOpen = !config.LockBar || (shouldShowHPBar && config.HPVisible);
MPBarWindow.IsOpen = !config.LockBar || (shouldShowMPBar && config.MPVisible && !hideForGPBar);
GPBarWindow.IsOpen = !config.LockBar || (shouldShowGPBar && config.GPVisible);
if (penumbraAvailable && penumbraIpc is not null && penumbraIpc.NativeUiBanned)
{
if(primaryTickerNode.imageNode is not null)
if (primaryTickerNode.imageNode is not null)
{
primaryTickerNode.DestroyNode();
}
if(secondaryTickerNode.imageNode is not null)
if (secondaryTickerNode.imageNode is not null)
{
secondaryTickerNode.DestroyNode();
}
Expand Down

0 comments on commit f84b406

Please sign in to comment.