Fixed server error on raid start

This commit is contained in:
Dev 2024-09-22 15:18:08 +01:00
parent 6de8740dcc
commit 396f5220f7

View File

@ -453,7 +453,7 @@ export class BotController {
protected getPmcConversionMinMaxForLocation(requestedBotRole: string, location: string) { protected getPmcConversionMinMaxForLocation(requestedBotRole: string, location: string) {
const mapSpecificConversionValues = this.pmcConfig.convertIntoPmcChance[location?.toLowerCase()]; const mapSpecificConversionValues = this.pmcConfig.convertIntoPmcChance[location?.toLowerCase()];
if (!mapSpecificConversionValues) { if (!mapSpecificConversionValues) {
return mapSpecificConversionValues.default; return this.pmcConfig.convertIntoPmcChance.default;
} }
return mapSpecificConversionValues[requestedBotRole?.toLowerCase()]; return mapSpecificConversionValues[requestedBotRole?.toLowerCase()];