fix synchronization issue

This commit is contained in:
RandomityGuy 2023-05-04 14:26:00 +05:30
parent 14d5432071
commit c6c1449a84

View file

@ -1118,12 +1118,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
}
}
}