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

Commit e9b8a9e

Browse files
ExplvExplv
Explv
authored and
Explv
committed
Fixing crash when player burns two shrimp in survival section
1 parent a0bc24f commit e9b8a9e

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/script/TutorialIsland.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import org.osbot.rs07.script.ScriptManifest;
55
import sections.*;
66

7-
@ScriptManifest(author = "Explv", name = "Explv's Tutorial Island", info = "Completes Tutorial Island", version = 5.8, logo = "")
7+
@ScriptManifest(author = "Explv", name = "Explv's Tutorial Island", info = "Completes Tutorial Island", version = 5.9, logo = "")
88
public final class TutorialIsland extends Script {
99

1010
private final TutorialSection rsGuideSection = new RuneScapeGuideSection();

src/sections/SurvivalSection.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
package sections;
22

33
import org.osbot.rs07.api.map.Position;
4-
import org.osbot.rs07.api.model.Entity;
5-
import org.osbot.rs07.api.model.GroundDecoration;
6-
import org.osbot.rs07.api.model.NPC;
7-
import org.osbot.rs07.api.model.RS2Object;
4+
import org.osbot.rs07.api.model.*;
85
import org.osbot.rs07.api.ui.Tab;
96
import org.osbot.rs07.event.WalkingEvent;
107
import utils.Sleep;
@@ -56,7 +53,7 @@ public final void onLoop() throws InterruptedException {
5653
case 110:
5754
if (getTabs().getOpen() != Tab.INVENTORY) {
5855
getTabs().open(Tab.INVENTORY);
59-
} else if (getInventory().getAmount(item -> item.getName().contains("shrimp")) < 2) {
56+
} else if (!getInventory().contains("Raw shrimps")) {
6057
fish();
6158
} else if (getObjects().closest("Fire") == null || getWidgets().getWidgetContainingText("time to light a fire") != null) {
6259
if (!getInventory().contains("Logs")) {

0 commit comments

Comments
 (0)