mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-11 08:57:11 +01:00
Fix getSpriteFolderName function call
This commit is contained in:
parent
bbe52886da
commit
89705391d1
@ -263,7 +263,7 @@ async function setLastMessageSprite(img, avatar, labels) {
|
||||
|
||||
if (lastMessage) {
|
||||
const text = lastMessage.mes || '';
|
||||
const spriteFolderName = getSpriteFolderName(lastMessage);
|
||||
const spriteFolderName = getSpriteFolderName(lastMessage, lastMessage.name);
|
||||
const sprites = spriteCache[spriteFolderName] || [];
|
||||
const label = await getExpressionLabel(text);
|
||||
const path = labels.includes(label) ? sprites.find(x => x.label === label)?.path : '';
|
||||
|
Loading…
Reference in New Issue
Block a user