fix invalid-avatar set

This commit is contained in:
matty 2024-08-05 19:32:57 -04:00
parent 8dd6ed7888
commit eb889711f5

View File

@ -102,7 +102,7 @@ async function getProsodyFilePaths (options: RegisterServerOptions): Promise<Pro
} }
let avatarSet: AvatarSet = (settings['avatar-set'] ?? 'sepia') as AvatarSet let avatarSet: AvatarSet = (settings['avatar-set'] ?? 'sepia') as AvatarSet
if (!['sepia', 'cat', 'bird', 'fenec', 'abstract', 'legacy'].includes(avatarSet)) { if (!['sepia', 'cat', 'bird', 'fenec', 'abstract', 'legacy', 'nctv'].includes(avatarSet)) {
logger.error('Invalid avatar-set setting, using sepia as default') logger.error('Invalid avatar-set setting, using sepia as default')
avatarSet = 'sepia' avatarSet = 'sepia'
} }