Skip to content

Conversation

@Elephant1214
Copy link
Contributor

While working with villagers, I noticed that calling AbstractVillager#resetOffers with normal villagers only adds two trades after resetting, even if the villager is not the base level and previously had more than two. I thought I had to use NMS to fix this, until I found Villager#addTrades and realized I could add them through it. This PR clarifies how resetOffers works and explains how the remaining trades can be added to a villager with the API.

@Elephant1214 Elephant1214 requested a review from a team as a code owner October 30, 2025 16:36
@github-project-automation github-project-automation bot moved this to Awaiting review in Paper PR Queue Oct 30, 2025
@lynxplay lynxplay merged commit ae5e78a into PaperMC:main Nov 1, 2025
6 checks passed
@github-project-automation github-project-automation bot moved this from Awaiting review to Merged in Paper PR Queue Nov 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Merged

Development

Successfully merging this pull request may close these issues.

3 participants