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 #end
} else { } else {
if (!this._loadBegin) if (!this._loadBegin || lock)
return; return;
if (!_ready && !postInited) { if (!_ready && !postInited) {
postInited = true; postInited = true;
Console.log("Finished loading, starting mission"); Console.log("Finished loading, starting mission");
haxe.Timer.delay(() -> postInit(), 5); // delay this a bit haxe.Timer.delay(() -> postInit(), 15); // delay this a bit
} }
} }
} }