fix canRez logic in tribble script: only need canRezTemp, and fail hard rather than retry

This commit is contained in:
Howard Stearns 2016-10-03 10:16:06 -07:00
parent 4c5bf3119e
commit 76d9d4c635

View file

@ -54,8 +54,12 @@ function randomVector(range) {
}; };
} }
if (!Entities.canRezTmp()) {
Window.alert("Cannot create temp objects here.");
Script.stop();
} else {
Script.setInterval(function () { Script.setInterval(function () {
if (!Entities.serversExist() || !Entities.canRez()) { if (!Entities.serversExist()) {
return; return;
} }
if (totalCreated >= NUMBER_TO_CREATE) { if (totalCreated >= NUMBER_TO_CREATE) {
@ -92,4 +96,4 @@ Script.setInterval(function () {
totalCreated++; totalCreated++;
} }
}, SCRIPT_INTERVAL); }, SCRIPT_INTERVAL);
}