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

Add tool break protection #111

Closed
grepsedawk opened this issue Apr 11, 2023 · 1 comment · Fixed by #113
Closed

Add tool break protection #111

grepsedawk opened this issue Apr 11, 2023 · 1 comment · Fixed by #113

Comments

@grepsedawk
Copy link
Collaborator

grepsedawk commented Apr 11, 2023

If the tool is a diamond or netherite tool AND the tool is enchanted, Inventory.pick! should not consider it a viable option if the slot.durability is < 10.

@grepsedawk
Copy link
Collaborator Author

grepsedawk commented Apr 11, 2023

can add this into the habitat config too if we want, tool_break_protection_durabiliity -- when 0 it's disabled.

grepsedawk added a commit that referenced this issue Apr 13, 2023
grepsedawk added a commit that referenced this issue Apr 13, 2023
grepsedawk added a commit that referenced this issue Apr 13, 2023
grepsedawk added a commit that referenced this issue Apr 13, 2023
@Gjum Gjum closed this as completed in #113 Apr 14, 2023
Gjum pushed a commit that referenced this issue Apr 14, 2023
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 a pull request may close this issue.

1 participant