Correctly update jump range for turned off modules

Closes #506
This commit is contained in:
felixlinker
2019-05-17 18:40:20 +02:00
parent 0fc033363e
commit 0c4fc1fd9a
2 changed files with 13 additions and 12 deletions

View File

@@ -15,7 +15,7 @@ export function jumpRange(mass, fsd, fuel, ship) {
let jumpAddition = 0;
if (ship) {
for (const module of ship.internal) {
if (module && module.m && module.m.grp === 'gfsb') {
if (module && module.m && module.m.grp === 'gfsb' && ship.getSlotStatus(module) == 3) {
jumpAddition += module.m.getJumpBoost();
}
}