BUGFIX: Saved running scripts are started before SWC is initialized ()

* BUGFIX: Saved running scripts are started before SWC is initialized

* Update based on feedback
This commit is contained in:
catloversg
2025-01-05 07:52:56 +07:00
committed by GitHub
parent c622291eff
commit 423a6ce110

@ -34,8 +34,8 @@ export function LoadingScreen(): React.ReactElement {
});
useEffect(() => {
load()
.then((saveData) => Promise.all([initSwc(), Engine.load(saveData)]))
Promise.all([initSwc(), load()])
.then(([__, saveData]) => Engine.load(saveData))
.then(() => {
pushGameReady();
setLoaded(true);