Sort templateModifications after inserting

The insertion order might not be consistent when clients join.
This commit is contained in:
phosit 2025-10-03 11:31:44 +02:00
parent b572fed672
commit 53a67e560f
No known key found for this signature in database
GPG key ID: C9430B600671C268

View file

@ -308,6 +308,8 @@ SharedScript.prototype.ApplyTemplatesDelta = function(state)
modif.set(change.variable, change.value);
}
}
this._templatesModifications =
Object.fromEntries(Object.entries(this._templatesModifications).sort());
Engine.ProfileStop();
};