fix synchronization issue

This commit is contained in:
RandomityGuy 2023-05-04 14:26:00 +05:30
parent 3a3345c4d3
commit 2fa9dbb71d

View file

@ -1117,12 +1117,12 @@ class MarbleWorld extends Scheduler {
});
#end
} else {
if (!this._loadBegin)
if (!this._loadBegin || lock)
return;
if (!_ready && !postInited) {
postInited = true;
Console.log("Finished loading, starting mission");
haxe.Timer.delay(() -> postInit(), 5); // delay this a bit
haxe.Timer.delay(() -> postInit(), 15); // delay this a bit
}
}
}