aphrodite: send an empty sampler priority list if using the default order

This commit is contained in:
AlpinDale
2024-12-09 14:05:33 +00:00
parent 66f02f59c0
commit bcbfcb87b5
2 changed files with 23 additions and 2 deletions

View File

@ -2173,3 +2173,20 @@ export function getCharIndex(char) {
if (index === -1) throw new Error(`Character not found: ${char.avatar}`);
return index;
}
/**
* Compares two arrays for equality
* @param {any[]} a - The first array
* @param {any[]} b - The second array
* @returns {boolean} True if the arrays are equal, false otherwise
*/
export function arraysEqual(a, b) {
if (a === b) return true;
if (a == null || b == null) return false;
if (a.length !== b.length) return false;
for (let i = 0; i < a.length; i++) {
if (a[i] !== b[i]) return false;
}
return true;
}