Paper
Paper copied to clipboard
More vanilla friendly methods to update trades
Closes https://github.com/PaperMC/Paper/issues/8471
Adds two new methods increaseLevel and addTrades based on Machine's comment The first one increase the level from a such amount like in vanilla The second unlock new trades, in vanilla this is used:
- for villager: 2 trades are unlocked while level up
- for wandering trader: 5 trades are unlocked + 1 extra