iutils: Spirit Tree transport fix

This commit is contained in:
illumineawake 2021-08-03 18:26:13 +10:00
parent fcdf82bbef
commit 17fef7692e
6 changed files with 6 additions and 7 deletions

View File

@ -23,7 +23,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
version = "4.3.2"
version = "4.3.3"
project.extra["PluginName"] = "iUtils"
project.extra["PluginDescription"] = "Illumine - Utils required for plugins to function with added automation"

View File

@ -166,10 +166,6 @@ public class iWidget implements Interactable, Useable {
return c;
}
public List<iWidget> children() { //TODO untested
return new ArrayList<>(children.values());
}
@Override
public void useOn(InventoryItem item) {
game.interactionManager().submit(() -> game.clientThread.invoke(() -> {

View File

@ -218,7 +218,7 @@ public class Chatbox {
public void selectMenu(String option) { //TODO untested
game.waitUntil(() -> game.screenContainer().nestedInterface() == 187);
for (var child : game.widget(187, 3).children()) {
for (var child : game.widget(187, 3).items()) {
if (child.text() != null && child.text().contains(option)) {
child.select();
return;

View File

@ -156,6 +156,9 @@ public class TransportLoader {
//Spirit Tree's
if (game.varp(111) == 9 && game.membersWorld()) {
for (var source : SPIRIT_TREES) {
if (source.location.equals("Gnome Stronghold") && game.varp(150) < 160) {
continue;
}
for (var target : SPIRIT_TREES) {
transports.add(spritTreeTransport(source.position, target.position, target.location));
}

File diff suppressed because one or more lines are too long