mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-03-13 13:52:33 +01:00
BUGFIX: Saved running scripts are started before SWC is initialized (#1857)
* BUGFIX: Saved running scripts are started before SWC is initialized * Update based on feedback
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user