Skip to content

Commit

Permalink
Get min door sizes from installed bay types and fix default door nums
Browse files Browse the repository at this point in the history
  • Loading branch information
Sleet01 committed Dec 27, 2024
1 parent 543ecc9 commit 80575b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion megameklab/src/megameklab/ui/generalUnit/TransportTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ public Component getTableCellEditorComponent(JTable table, Object value, boolean
if (column == InstalledBaysModel.COL_DOORS) {
int doors = (Integer) modelInstalled.getValueAt(row, column);
SpinnerNumberModel model = new SpinnerNumberModel(doors,
(isInfantry) ? 0 : 1,
modelInstalled.bayList.get(row).getMinDoors(),
getEntity().isAero() ? doorsAvailable() + doors : Integer.MAX_VALUE, 1);
spinner.removeChangeListener(this);
spinner.setModel(model);
Expand Down

0 comments on commit 80575b4

Please sign in to comment.