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 #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
} }
} }
} }