Skip to content

Commit

Permalink
Allow subcapital weapons to be placed in corresponding capital weapon…
Browse files Browse the repository at this point in the history
… bay.
  • Loading branch information
neoancient committed Jan 24, 2024
1 parent 16d80ed commit 448b7ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion megameklab/src/megameklab/ui/util/BayWeaponCriticalTree.java
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,8 @@ private void moveToArc(Mounted eq) {
*/
private boolean canTakeEquipment(Mounted bay, Mounted eq) {
if (eq.getType() instanceof WeaponType) {
if (((WeaponType) eq.getType()).getBayType() != bay.getType()) {
if ((((WeaponType) eq.getType()).getBayType(false) != bay.getType())
&& (((WeaponType) eq.getType()).getBayType(true) != bay.getType())) {
return false;
}
// find current av
Expand Down

0 comments on commit 448b7ad

Please sign in to comment.