Fix cached worlds not showing in user dialog, Fix "Error" world size

This commit is contained in:
Natsumi
2023-12-09 12:08:36 +13:00
parent 897e4f2974
commit d52ac789ac
+4 -4
View File
@@ -17349,8 +17349,7 @@ speechSynthesis.getVoices();
}, },
done: () => { done: () => {
if (D.id === params.userId) { if (D.id === params.userId) {
var array = Array.from(map.values()); this.setUserDialogWorlds(D.id);
$app.userDialog.worlds = array;
} }
D.isWorldsLoading = false; D.isWorldsLoading = false;
} }
@@ -24407,9 +24406,10 @@ speechSynthesis.getVoices();
'' ''
); );
// limit to 8 characters because 2019.4.31f1c1 is a thing // limit to 8 characters because 2019.4.31f1c1 is a thing
currentUnityVersion = currentUnityVersion.slice(0, 8); // limit to 7 characters because 2022361 is a thing
currentUnityVersion = currentUnityVersion.slice(0, 7);
var assetVersion = version.replace(/\D/g, ''); var assetVersion = version.replace(/\D/g, '');
assetVersion = assetVersion.slice(0, 8); assetVersion = assetVersion.slice(0, 7);
if (parseInt(assetVersion, 10) <= parseInt(currentUnityVersion, 10)) { if (parseInt(assetVersion, 10) <= parseInt(currentUnityVersion, 10)) {
return true; return true;
} }