From 80575b4f83a94a4c22e6089c5a68865e05c7ee3d Mon Sep 17 00:00:00 2001 From: sleet01 Date: Thu, 26 Dec 2024 16:30:58 -0800 Subject: [PATCH] Get min door sizes from installed bay types and fix default door nums --- megameklab/src/megameklab/ui/generalUnit/TransportTab.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/megameklab/src/megameklab/ui/generalUnit/TransportTab.java b/megameklab/src/megameklab/ui/generalUnit/TransportTab.java index 2b09b0e4c..194d50ce2 100644 --- a/megameklab/src/megameklab/ui/generalUnit/TransportTab.java +++ b/megameklab/src/megameklab/ui/generalUnit/TransportTab.java @@ -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);