mirror of
https://gitgud.io/BondageProjects/Bondage-College.git
synced 2025-04-25 17:59:34 +00:00
Check the post-validation settings against the actually character data
This commit is contained in:
parent
e51138b4a2
commit
a07d92afb0
1 changed files with 3 additions and 3 deletions
|
@ -508,9 +508,9 @@ function PreferenceInitPlayer(C, data) {
|
|||
/** @type {{ [k in keyof typeof PrefBefore]?: PlayerCharacter[k] }} */
|
||||
const toUpdate = {};
|
||||
|
||||
for (const prop of Object.keys(PrefBefore))
|
||||
if (PrefBefore[prop] !== JSON.stringify(data[prop]))
|
||||
toUpdate[prop] = data[prop];
|
||||
for (const [prop, stringPrefBefore] of CommonEntries(PrefBefore))
|
||||
if (JSON.stringify(C[prop]) !== stringPrefBefore)
|
||||
toUpdate[/** @type {string} */(prop)] = data[prop];
|
||||
|
||||
if (Object.keys(toUpdate).length > 0)
|
||||
ServerAccountUpdate.QueueData(toUpdate);
|
||||
|
|
Loading…
Add table
Reference in a new issue