Skip to content

Commit

Permalink
Fixed null call
Browse files Browse the repository at this point in the history
  • Loading branch information
Vek17 committed Jun 24, 2024
1 parent f606b13 commit 7507d40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TabletopTweaks-Core/NewComponents/AddArmorACModifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public override void OnTurnOn() {
if (IsShield) {
base.Owner.Body.CurrentHandsEquipmentSet?.SecondaryHand?.MaybeShield?.ArmorComponent?.RecalculateStats();
} else {
base.Owner.Body.Armor?.Armor?.RecalculateStats();
base.Owner.Body.Armor?.MaybeArmor?.RecalculateStats();
}
}

Expand All @@ -31,7 +31,7 @@ public override void OnTurnOff() {
if (IsShield) {
base.Owner.Body.CurrentHandsEquipmentSet?.SecondaryHand?.MaybeShield?.ArmorComponent?.RecalculateStats();
} else {
base.Owner.Body.Armor?.Armor?.RecalculateStats();
base.Owner.Body.Armor?.MaybeArmor?.RecalculateStats();
}
}

Expand Down

0 comments on commit 7507d40

Please sign in to comment.