Skip to content

Commit

Permalink
Merge pull request #5187 from Setsul/master
Browse files Browse the repository at this point in the history
Fix BattleArmor customization/refit overweight check.
  • Loading branch information
HammerGS authored Nov 23, 2024
2 parents 3979544 + bce5f63 commit b69f6b8
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 b69f6b8

Please sign in to comment.