Skip to content

Commit

Permalink
fix: missing a call to set armor tech level, which seens redundant to…
Browse files Browse the repository at this point in the history
… armor tech rating
  • Loading branch information
Scoppio committed Nov 3, 2024
1 parent fd8ab00 commit 55e4fc5
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions megameklab/src/megameklab/ui/supportVehicle/SVArmorTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ public void armorTypeChanged(int at, int armorTechLevel) {
@Override
public void armorTechRatingChanged(int techRating) {
getEntity().setArmorTechRating(techRating);
getEntity().setArmorTechLevel(techRating);
getEntity().recalculateTechAdvancement();
panArmor.setFromEntity(getEntity());
panArmorAllocation.setFromEntity(getEntity());
Expand All @@ -135,16 +136,6 @@ public void armorTechRatingChanged(int techRating) {
refresh.refreshPreview();
}

@Override
public void armorBARRatingChanged(int bar) {
getEntity().setBARRating(bar);
panArmor.setFromEntity(getEntity());
panArmorAllocation.setFromEntity(getEntity());
refresh.refreshSummary();
refresh.refreshStatus();
refresh.refreshPreview();
}

@Override
public void maximizeArmor() {
double maxTonnage = UnitUtil.getMaximumArmorTonnage(getEntity());
Expand Down

0 comments on commit 55e4fc5

Please sign in to comment.