[PR #666] Add tree reachability (clipping) check to woodcutting logic #13371

Open
opened 2026-06-06 12:22:41 +00:00 by Dark98 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/2006-Scape/2006Scape/pull/666
Author: @0x5472616379
Created: 3/7/2025
Status: 🔄 Open

Base: masterHead: woodcutting-clipping-check


📝 Commits (2)

  • 13a0b3d Add tree reachability check to woodcutting logic.
  • 7a8ea4b Remove debug messages from Woodcutting.java

📊 Changes

2 files changed (+77 additions, -0 deletions)

View changed files

📝 2006Scape Server/src/main/java/com/rs2/game/content/skills/woodcutting/Woodcutting.java (+37 -0)
📝 2006Scape Server/src/main/java/com/rs2/world/clip/Region.java (+40 -0)

📄 Description

Description

This pull request introduces a canReachTree method to the woodcutting logic, ensuring trees are accessible before woodcutting begins. It includes:

  • A new function in Region called "GetObjectAt".
  • A new function in Region called "reachedObject".

This update aims to improve gameplay mechanics by preventing unreachable tree interactions.

Checklist

  • Code compiles without errors.
  • Tested Normal, Oak, Willow, Maple, Yew & Magic trees at various locations.

Additional Notes

N/A


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/2006-Scape/2006Scape/pull/666 **Author:** [@0x5472616379](https://github.com/0x5472616379) **Created:** 3/7/2025 **Status:** 🔄 Open **Base:** `master` ← **Head:** `woodcutting-clipping-check` --- ### 📝 Commits (2) - [`13a0b3d`](https://github.com/2006-Scape/2006Scape/commit/13a0b3dcf84c5f9d9d31db9f1585ec489dd7d0d1) Add tree reachability check to woodcutting logic. - [`7a8ea4b`](https://github.com/2006-Scape/2006Scape/commit/7a8ea4bb8eceaa83695c4305b5d0cd6c5b6da13e) Remove debug messages from Woodcutting.java ### 📊 Changes **2 files changed** (+77 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `2006Scape Server/src/main/java/com/rs2/game/content/skills/woodcutting/Woodcutting.java` (+37 -0) 📝 `2006Scape Server/src/main/java/com/rs2/world/clip/Region.java` (+40 -0) </details> ### 📄 Description ### Description This pull request introduces a `canReachTree` method to the woodcutting logic, ensuring trees are accessible before woodcutting begins. It includes: - A new function in Region called "GetObjectAt". - A new function in Region called "reachedObject". This update aims to improve gameplay mechanics by preventing unreachable tree interactions. ### Checklist - [x] Code compiles without errors. - [x] Tested Normal, Oak, Willow, Maple, Yew & Magic trees at various locations. ### Additional Notes N/A --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Dark98 added the pull-request label 2026-06-06 12:22:41 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: 2006-Scape/2006Scape#13371