Skip to content

Commit

Permalink
Remove item in head when switching to small cockpit
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelbraginskiy committed Oct 28, 2024
1 parent ae61a4d commit 34486a0
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 34486a0

Please sign in to comment.