mirror of
https://github.com/overte-org/overte.git
synced 2025-07-10 12:58:36 +02:00
fix canRez logic in tribble script: only need canRezTemp, and fail hard rather than retry
This commit is contained in:
parent
4c5bf3119e
commit
76d9d4c635
1 changed files with 40 additions and 36 deletions
|
@ -54,8 +54,12 @@ function randomVector(range) {
|
|||
};
|
||||
}
|
||||
|
||||
if (!Entities.canRezTmp()) {
|
||||
Window.alert("Cannot create temp objects here.");
|
||||
Script.stop();
|
||||
} else {
|
||||
Script.setInterval(function () {
|
||||
if (!Entities.serversExist() || !Entities.canRez()) {
|
||||
if (!Entities.serversExist()) {
|
||||
return;
|
||||
}
|
||||
if (totalCreated >= NUMBER_TO_CREATE) {
|
||||
|
@ -92,4 +96,4 @@ Script.setInterval(function () {
|
|||
totalCreated++;
|
||||
}
|
||||
}, SCRIPT_INTERVAL);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue