The Bug:
Trades with very high price increases cost one item instead of a full stack.
Trades with price increases lower by one cost a full stack, therefore introducing an inconsistency.
Steps to Reproduce:
Summon a wandering trader with two trades that have very high price increases, the second one higher by one, by using the command provided below.
/summon minecraft:wandering_trader ~ ~ ~2 {Offers:{Recipes:[{buy:{id:"minecraft:emerald"},sell:{id:"minecraft:apple"},specialPrice:2147483646},{buy:{id:"minecraft:emerald"},sell:{id:"minecraft:apple"},specialPrice:2147483647}]}}Open the wandering trader's trading screen.
Observe the prices of the two trades.
Observed Behavior:
Trades with very high price increases cost one item.
Expected Behavior:
Trades with very high price increases would cost a full stack of items.