MerchantRecipe is inconsistent when calling setters #10708
Labels
status: accepted
Disputed bug is accepted as valid or Feature accepted as desired to be added.
type: bug
Something doesn't work as it was intended to.
version: 1.20.6
Game version 1.20.6
Expected behavior
When you get a MerchantRecipe from a villager and call one of the setters on it, either they should not be reflected without setting back the recipe to the villager, or all of the setters should be reflected. In other words, it should be consistent one way or another.
Observed/Actual behavior
Some of the setters mutate the actual nms MerchantOffer, while others only take effect after a "refresh" of the trades by actually making a trade.
Steps/models to reproduce
Use the code below in a test plugin
Plugin and Datapack List
just a test plugin
Paper version
f041f48
Other
No response
The text was updated successfully, but these errors were encountered: