Skip to content

Commit

Permalink
Fixed an issue that caused botSpawn changes to run all of the time.
Browse files Browse the repository at this point in the history
  • Loading branch information
refringe committed Aug 23, 2023
1 parent 08c689f commit 496ee7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/config/getConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,5 @@ export async function getConfig(container: DependencyContainer): Promise<Configu
}

// Adjust the configuration file for incompatible mods.
config = adjustForIncompatibleMods(container, config);

return config;
return adjustForIncompatibleMods(container, config) as Configuration;
}
4 changes: 3 additions & 1 deletion src/raids/adjustmentHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ export function adjustRaids(container: DependencyContainer, config: Configuratio
if (locationData) {
adjustRaidTime(locationData, config, logger);
adjustTrainTime(locationData, config, logger);
adjustSpawnWaves(locationData, config, logger);
if (config.botSpawn.adjustWaves) {
adjustSpawnWaves(locationData, config, logger);
}
} else {
logger.log(`CustomRaidTimes: Location '${location}' not found. Skipping adjustment.`, 'red');
}
Expand Down

0 comments on commit 496ee7c

Please sign in to comment.