mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-28 09:58:11 +03:00
fix: crash in bot
This commit is contained in:
@@ -78,7 +78,7 @@ export function FormatClass(
|
||||
const gptConfig = GetGamePTConfig(game, playtype);
|
||||
|
||||
// @ts-expect-error hacky access
|
||||
const classInfo: ClassInfo = gptConfig.classes[classSet]?.find((k) => k.id === classValue);
|
||||
const classInfo: ClassInfo = gptConfig.classes[classSet]?.find?.((k) => k.id === classValue);
|
||||
|
||||
if (!classInfo) {
|
||||
throw new Error(
|
||||
|
||||
Reference in New Issue
Block a user