From 693dc4bbb5583f9da86391e0eb6490e4ba065ab9 Mon Sep 17 00:00:00 2001 From: Dev Date: Sat, 20 Jan 2024 22:50:12 +0000 Subject: [PATCH] Fix PMCs not spawning --- project/src/controllers/BotController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/controllers/BotController.ts b/project/src/controllers/BotController.ts index d24a654f..270c2689 100644 --- a/project/src/controllers/BotController.ts +++ b/project/src/controllers/BotController.ts @@ -275,7 +275,7 @@ export class BotController } // Construct cache key - const cacheKey = `${requestedBot.Role}${requestedBot.Difficulty}`; + const cacheKey = `${botGenerationDetails.role}${botGenerationDetails.botDifficulty}`; // Check cache for bot using above key if (!this.botGenerationCacheService.cacheHasBotOfRole(cacheKey))