Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ore prospector place waypoints at vein height #2726

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jktham
Copy link

@jktham jktham commented Feb 15, 2025

What

Change ore prospector behavior to place waypoints at the average height of the hovered ores instead of at the surface. Also adds the height to the tooltip, might be too cluttered?

Implementation Details

The height of each ore in the prospecting packet is averaged and stored in a map entry per oredict, then the currently hovered ores are averaged again and stored in a member which later gets used when adding the waypoint. I mostly copied the way oreInfo and hoveredNames was done. Height is already given in the keys of the packet, so there should be no performance impact.

Outcome

When the player adds a waypoint, it gets placed directly at the height of the vein. Less tedious than having to look it up in jei or blindly mining up or down.

Additional Information

waypoints
tooltip

Potential Compatibility Issues

Not much, all changes are isolated to WidgetProspectingMap. If no ores are found it defaults to the surface, so fluid prospector behavior is unchanged.

@jktham jktham requested a review from a team as a code owner February 15, 2025 22:49
@ALongStringOfNumbers ALongStringOfNumbers added type: feature New feature or request and removed type: feature New feature or request labels Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants