Skip to content

Commit

Permalink
Fix BattleArmor customization/refit overweight check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Setsul committed Nov 10, 2024
1 parent eac3a38 commit bce5f63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MekHQ/src/mekhq/gui/MekLabTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public void refreshRefitSummary() {
tonnage = ((BattleArmor) entity).getTrooperWeight() * ((BattleArmor) entity).getTroopers();
}

if (entity.getWeight() < testEntity.calculateWeight()) {
if (tonnage < testEntity.calculateWeight()) {
btnRefit.setEnabled(false);
btnRefit.setToolTipText("Unit is overweight.");
// } else if (entity.getWeight() > testEntity.calculateWeight()) {
Expand Down

0 comments on commit bce5f63

Please sign in to comment.