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