Skip to content

Commit

Permalink
Merge pull request #1647 from pavelbraginskiy/fix-1640
Browse files Browse the repository at this point in the history
Remove item in head when switching to small cockpit
  • Loading branch information
HammerGS authored Oct 29, 2024
2 parents ae61a4d + 34486a0 commit 9f67505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion megameklab/src/megameklab/ui/mek/BMStructureTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ && getMek().getCritical(Mek.LOC_RT, i).getType() == CriticalSlot.TYPE_EQUIPMENT)
*/
private void clearCritsForCockpit(boolean small, boolean dual) {
for (int slot = 0; slot < (small ? 4 : 6); slot++) {
if ((slot == 3) && !dual) {
if ((slot == 3) && !dual && !small) {
continue;
}
clearCrit(Mek.LOC_HEAD, slot);
Expand Down

0 comments on commit 9f67505

Please sign in to comment.