iutils: Spirit Tree transport fix
This commit is contained in:
parent
fcdf82bbef
commit
17fef7692e
|
@ -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"
|
||||
|
|
|
@ -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(() -> {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
Binary file not shown.
Loading…
Reference in New Issue