Skip to content
This repository was archived by the owner on Feb 9, 2022. It is now read-only.

Commit df171b5

Browse files
author
Explv
committed
Replace deprecated Entity::isOnScreen references
1 parent 0a3bb8b commit df171b5

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/main/java/activities/quests/DialogueCompleter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ public DialogueCompleter(final String npcName, final String... dialogueOptions)
2929
public void run() throws InterruptedException {
3030
NPC npc = getNpcs().closest(npcName);
3131

32-
if (npc == null || !npc.isOnScreen()) {
32+
if (npc == null || !npc.isVisible()) {
3333
if (area != null && !area.contains(myPosition())) {
3434
WebWalkEvent webWalkEvent = new WebWalkEvent(area);
3535
webWalkEvent.setBreakCondition(new Condition() {
3636
@Override
3737
public boolean evaluate() {
3838
NPC npc = getNpcs().closest(npcName);
39-
return npc != null && npc.isOnScreen() && getMap().canReach(npc);
39+
return npc != null && npc.isVisible() && getMap().canReach(npc);
4040
}
4141
});
4242
execute(webWalkEvent);

src/main/java/activities/skills/fishing/FishingActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public void runActivity() throws InterruptedException {
8888
private void fish() {
8989
currentFishingSpot = getFishingSpot();
9090
if (currentFishingSpot != null) {
91-
if (!currentFishingSpot.isOnScreen()) {
91+
if (!currentFishingSpot.isVisible()) {
9292
getWalking().walk(currentFishingSpot);
9393
}
9494
if (currentFishingSpot.interact(fish.fishingMethod.action)) {

src/main/java/activities/tutorial_island/TutorialIsland.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void onStart() throws InterruptedException {
3131
priestSection.exchangeContext(getBot());
3232
wizardSection.exchangeContext(getBot());
3333

34-
Sleep.sleepUntil(() -> getClient().isLoggedIn() && myPlayer().isVisible() && myPlayer().isOnScreen(), 6000, 500);
34+
Sleep.sleepUntil(() -> getClient().isLoggedIn() && myPlayer().isVisible(), 6000, 500);
3535
}
3636

3737
@Override

src/main/java/script/AIO.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
@ScriptManifest(author = "Explv", name = "Explv's AIO " + AIO.VERSION, info = "AIO", version = 0, logo = "http://i.imgur.com/58Zz0fb.png")
2727
public class AIO extends Script {
2828

29-
public static final String VERSION = "v3.2.7";
29+
public static final String VERSION = "v3.2.8";
3030

3131
private Gui gui;
3232
private Paint paint;

0 commit comments

Comments
 (0)