mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 22:55:35 +00:00
Fix find lightest shield generator min mass bug
This commit is contained in:
@@ -135,7 +135,7 @@ export default class ModuleSet {
|
|||||||
let sg = this.internal.sg[0];
|
let sg = this.internal.sg[0];
|
||||||
|
|
||||||
for (let s of this.internal.sg) {
|
for (let s of this.internal.sg) {
|
||||||
if (s.mass < sg.mass && s.minmass <= hullMass && s.maxmass > hullMass) {
|
if (s.mass < sg.mass && s.maxmass > hullMass) {
|
||||||
sg = s;
|
sg = s;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user