Skip to content

Commit

Permalink
BUGFIX: Saved running scripts are started before SWC is initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
catloversg committed Dec 16, 2024
1 parent d9dba2a commit 660f3e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ui/LoadingScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ export function LoadingScreen(): React.ReactElement {
});

useEffect(() => {
load()
.then((saveData) => Promise.all([initSwc(), Engine.load(saveData)]))
initSwc()
.then(() => load())
.then((saveData) => Engine.load(saveData))
.then(() => {
pushGameReady();
setLoaded(true);
Expand Down

0 comments on commit 660f3e7

Please sign in to comment.