mirror of
https://github.com/Wx-2025/ST-Amily2-Chat-Optimisation.git
synced 2026-06-11 01:15:50 +00:00
Update cwb_lorebookManager.js
This commit is contained in:
@@ -208,9 +208,11 @@ export async function updateCharacterRosterLorebookEntry(processedCharacterNames
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const floorRangeKey = existingRosterEntry.keys.find(k => /^\d+-\d+$/.test(k));
|
if (Array.isArray(existingRosterEntry.keys)) {
|
||||||
if (floorRangeKey) {
|
const floorRangeKey = existingRosterEntry.keys.find(k => /^\d+-\d+$/.test(k));
|
||||||
[oldStartFloor] = floorRangeKey.split('-').map(Number);
|
if (floorRangeKey) {
|
||||||
|
[oldStartFloor] = floorRangeKey.split('-').map(Number);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user