Remove return type from updateWaterFilters()

This commit is contained in:
Dev 2024-01-29 11:10:26 +00:00
parent 4cc7813320
commit 079651045d

View File

@ -498,7 +498,7 @@ export class HideoutHelper
const prod = pmcData.Hideout.Production[HideoutHelper.waterCollector]; const prod = pmcData.Hideout.Production[HideoutHelper.waterCollector];
if (prod && this.isProduction(prod)) if (prod && this.isProduction(prod))
{ {
area = this.updateWaterFilters(area, prod, isGeneratorOn, pmcData); this.updateWaterFilters(area, prod, isGeneratorOn, pmcData);
} }
else else
{ {
@ -521,14 +521,13 @@ export class HideoutHelper
* @param production production object * @param production production object
* @param isGeneratorOn is generator enabled * @param isGeneratorOn is generator enabled
* @param pmcData Player profile * @param pmcData Player profile
* @returns Updated HideoutArea object
*/ */
protected updateWaterFilters( protected updateWaterFilters(
waterFilterArea: HideoutArea, waterFilterArea: HideoutArea,
production: Production, production: Production,
isGeneratorOn: boolean, isGeneratorOn: boolean,
pmcData: IPmcData, pmcData: IPmcData,
): HideoutArea ): void
{ {
let filterDrainRate = this.getWaterFilterDrainRate(pmcData); let filterDrainRate = this.getWaterFilterDrainRate(pmcData);
const productionTime = this.getTotalProductionTimeSeconds(HideoutHelper.waterCollector); const productionTime = this.getTotalProductionTimeSeconds(HideoutHelper.waterCollector);
@ -597,8 +596,6 @@ export class HideoutHelper
} }
} }
} }
return waterFilterArea;
} }
/** /**