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(() => {
|
useEffect(() => {
|
||||||
load()
|
Promise.all([initSwc(), load()])
|
||||||
.then((saveData) => Promise.all([initSwc(), Engine.load(saveData)]))
|
.then(([__, saveData]) => Engine.load(saveData))
|
||||||
.then(() => {
|
.then(() => {
|
||||||
pushGameReady();
|
pushGameReady();
|
||||||
setLoaded(true);
|
setLoaded(true);
|
||||||
|
Reference in New Issue
Block a user