Skip to content

fix(motherload-mine): use direct vein click to prevent mining unreach…#302

Merged
chsami merged 1 commit intomainfrom
development
Feb 3, 2026
Merged

fix(motherload-mine): use direct vein click to prevent mining unreach…#302
chsami merged 1 commit intomainfrom
development

Conversation

@chsami
Copy link
Owner

@chsami chsami commented Feb 3, 2026

…able 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.

…able 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 <mike.zarglis@gmail.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
@chsami chsami merged commit ebf6248 into main Feb 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants