mirror of
https://github.com/lubosz/overte.git
synced 2025-04-26 12:55:27 +02:00
cr
This commit is contained in:
parent
481e239a37
commit
87adae6c6f
1 changed files with 2 additions and 6 deletions
|
@ -578,14 +578,10 @@ var toolBar = (function () {
|
|||
var isLoadedCheckCount = 0;
|
||||
var entityIsLoadedCheck = function() {
|
||||
isLoadedCheckCount++;
|
||||
if (isLoadedCheckCount === MAX_LOADED_CHECKS) {
|
||||
if (isLoadedCheckCount === MAX_LOADED_CHECKS || Entity.isLoaded(entityID)) {
|
||||
return;
|
||||
}
|
||||
if (EntityisLoaded(entityID)) {
|
||||
return;
|
||||
} else {
|
||||
Script.setTimeout(entityIsLoadedCheck, LOADED_CHECK_INTERVAL);
|
||||
}
|
||||
Script.setTimeout(entityIsLoadedCheck, LOADED_CHECK_INTERVAL);
|
||||
}
|
||||
Script.setTimeout(entityIsLoadedCheck, LOADED_CHECK_INTERVAL);
|
||||
|
||||
|
|
Loading…
Reference in a new issue