diff --git a/src/TQVaultAE.GUI/Components/EquipmentPanel.cs b/src/TQVaultAE.GUI/Components/EquipmentPanel.cs index f3851a21..93be3380 100644 --- a/src/TQVaultAE.GUI/Components/EquipmentPanel.cs +++ b/src/TQVaultAE.GUI/Components/EquipmentPanel.cs @@ -763,8 +763,11 @@ protected override void PaintAreaUnderItem(PaintEventArgs e) // If we are showing the cannot equip background then // change to invalid color and adjust the alpha. else if ( - (Config.UserSettings.Default.EnableItemRequirementRestriction && !this.PlayerMeetRequierements(item)) - || !IsSuitableForCurrentPlayer(item) + !this.SecondaryVaultShown + && ( + (Config.UserSettings.Default.EnableItemRequirementRestriction && !this.PlayerMeetRequierements(item)) + || !IsSuitableForCurrentPlayer(item) + ) ) { backgroundColor = this.HighlightInvalidItemColor; diff --git a/src/TQVaultAE.GUI/Components/SackPanel.cs b/src/TQVaultAE.GUI/Components/SackPanel.cs index ed54dcf2..aae3c8b3 100644 --- a/src/TQVaultAE.GUI/Components/SackPanel.cs +++ b/src/TQVaultAE.GUI/Components/SackPanel.cs @@ -2544,8 +2544,11 @@ protected virtual void PaintAreaUnderItem(PaintEventArgs e) // If we are showing the cannot equip background then // change to invalid color and adjust the alpha. else if ( - (Config.UserSettings.Default.EnableItemRequirementRestriction && !this.PlayerMeetRequierements(item)) - || !IsSuitableForCurrentPlayer(item) + !this.SecondaryVaultShown + && ( + (Config.UserSettings.Default.EnableItemRequirementRestriction && !this.PlayerMeetRequierements(item)) + || !IsSuitableForCurrentPlayer(item) + ) ) { backgroundColor = this.HighlightInvalidItemColor;