mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
Loading fixes
This commit is contained in:
parent
dcda551233
commit
6a28fa3b66
@ -231,6 +231,7 @@ export async function initMods() {
|
|||||||
T.buildings[base_id][variant] = translations.variants[variant];
|
T.buildings[base_id][variant] = translations.variants[variant];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(mod.shapes) {
|
if(mod.shapes) {
|
||||||
mod_infos += `${mod.shapes.length} shapes, `;
|
mod_infos += `${mod.shapes.length} shapes, `;
|
||||||
@ -238,7 +239,6 @@ export async function initMods() {
|
|||||||
ModShapes.push(shape);
|
ModShapes.push(shape);
|
||||||
allShapeData[shape.id] = shape;
|
allShapeData[shape.id] = shape;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.log(mod_infos);
|
logger.log(mod_infos);
|
||||||
|
@ -47,13 +47,6 @@ console.log("%cDEVCODE BUILT IN", "color: #f77");
|
|||||||
|
|
||||||
logSection("Boot Process", "#f9a825");
|
logSection("Boot Process", "#f9a825");
|
||||||
|
|
||||||
initMods();
|
|
||||||
initDrawUtils();
|
|
||||||
initComponentRegistry();
|
|
||||||
initItemRegistry();
|
|
||||||
initMetaBuildingRegistry();
|
|
||||||
initGameSpeedRegistry();
|
|
||||||
|
|
||||||
let app = null;
|
let app = null;
|
||||||
|
|
||||||
function bootApp() {
|
function bootApp() {
|
||||||
@ -62,4 +55,13 @@ function bootApp() {
|
|||||||
app.boot();
|
app.boot();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
(async () => {
|
||||||
|
await initMods();
|
||||||
|
initDrawUtils();
|
||||||
|
initComponentRegistry();
|
||||||
|
initItemRegistry();
|
||||||
|
initMetaBuildingRegistry();
|
||||||
|
initGameSpeedRegistry();
|
||||||
|
})();
|
||||||
|
|
||||||
window.addEventListener("load", bootApp);
|
window.addEventListener("load", bootApp);
|
Loading…
Reference in New Issue
Block a user