From 20e3fbe87b69f132f346ea891d6887fb53760aa7 Mon Sep 17 00:00:00 2001 From: mz <994599+mzarglis@users.noreply.github.com> Date: Tue, 3 Feb 2026 00:16:29 -0500 Subject: [PATCH] fix(motherload-mine): use direct vein click to prevent mining unreachable veins (#301) The previous code re-queried the tile object cache by vein ID when attempting to mine, which could return a different vein than the one originally selected. Since ore vein IDs (26661-26664) are shared across many veins in the mine, the query could match a vein in a different mining area, causing the bot to get stuck attempting to mine an unreachable vein. Changed from: rs2TileObjectCache.query().interact(vein.getId()) To: vein.click() This ensures the bot interacts with the exact vein that was found by findClosestVein(), which has already been validated for: - Reachability (nearestReachable) - Correct floor (upstairs/downstairs) - Anti-crash distance checks Bumps version to 1.8.3. Co-authored-by: Michael Zarglis Co-authored-by: Claude Opus 4.5 --- .../plugins/microbot/motherloadmine/MotherloadMinePlugin.java | 2 +- .../plugins/microbot/motherloadmine/MotherloadMineScript.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/runelite/client/plugins/microbot/motherloadmine/MotherloadMinePlugin.java b/src/main/java/net/runelite/client/plugins/microbot/motherloadmine/MotherloadMinePlugin.java index c63167f34d..75aeef6ff7 100644 --- a/src/main/java/net/runelite/client/plugins/microbot/motherloadmine/MotherloadMinePlugin.java +++ b/src/main/java/net/runelite/client/plugins/microbot/motherloadmine/MotherloadMinePlugin.java @@ -36,7 +36,7 @@ ) public class MotherloadMinePlugin extends Plugin { - static final String version = "1.8.2"; + static final String version = "1.8.3"; @Inject private MotherloadMineConfig config; diff --git a/src/main/java/net/runelite/client/plugins/microbot/motherloadmine/MotherloadMineScript.java b/src/main/java/net/runelite/client/plugins/microbot/motherloadmine/MotherloadMineScript.java index 9e2c632b49..8bd566c971 100644 --- a/src/main/java/net/runelite/client/plugins/microbot/motherloadmine/MotherloadMineScript.java +++ b/src/main/java/net/runelite/client/plugins/microbot/motherloadmine/MotherloadMineScript.java @@ -513,7 +513,7 @@ private boolean attemptToMineVein() { handlePickaxeSpec(); - if (!rs2TileObjectCache.query().interact(vein.getId())) return false; + if (!vein.click()) return false; oreVein = vein; return sleepUntil(() -> {