8000 fix: anvil rename rework [EcoHub-614] by Exanthiax · Pull Request #696 · Auxilor/eco · GitHub
[go: up one dir, main page]

Skip to content

fix: anvil rename rework [EcoHub-614] - #696

Merged
Exanthiax merged 2 commits into
masterfrom
fix/anvil-rename-rework
Nov 22, 2026
Merged

Exanthiax merged 2 commits into
masterfrom
fix/anvil-rename-rework

Conversation

@Exanthiax
Copy link
Copy Markdown
Member

No description provided.

@coderabbitai
coderabbitai Bot commented Nov 21, 2026 •
Copy link
Copy Markdown

Explain Change →

Walkthrough

The anvil listener now identifies renames by checking whether the computed XP price is zero. When rework penalties are enabled, it recalculates repair cost for renames and other operations. It uses the greater of the output repair cost and the right-hand item repair cost, or zero when no right-hand item exists. Renames retain this cost; other operations apply the rework penalty.

Merge Risk: Low · up to 272e7

Anvil operations that round to zero XP under a nonstandard cost exponent are now treated as renames. They skip the rework penalty and the maximum-cost check. Standard configurations are unaffected. Fix the rename classification before or soon after merge.

Pre-merge checks: Passed 2

Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@coderabbitai coderabbitai Bot left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3a143795-3e74-4d36-97f6-c398256dd588
Commits

Reviewing files that changed from the base of the PR and between c1c6b2f and 272e7e6.

Files selected for processing: 1

  • eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/anvil/AnvilMechanicsListener.kt

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.

@Exanthiax
Exanthiax merged commit 44c6a4b into master Nov 22, 2026
1 of 2 checks passed
@Exanthiax
Exanthiax deleted the fix/anvil-rename-rework branch November 22, 2026 00:48
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.

1 participant

0