Fix sorting value of 0 now not working ... duh

This commit is contained in:
Lukas Rieger (Blue) 2023-02-08 17:43:12 +01:00
parent 277af6b498
commit 256e80bb62
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2

View File

@ -138,7 +138,7 @@ export class Map {
.then(worldSettings => {
this.data.name = worldSettings.name ? worldSettings.name : this.data.name;
this.data.sorting = worldSettings.sorting ? worldSettings.sorting : this.data.sorting;
this.data.sorting = Number.isInteger(worldSettings.sorting) ? worldSettings.sorting : this.data.sorting;
this.data.startPos = {...this.data.startPos, ...vecArrToObj(worldSettings.startPos, true)};