mojira.dev
MC-313831

Trades with very high price increases cost one item instead of a full stack

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:

  1. 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}]}}
  2. Open the wandering trader's trading screen.

  3. 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.

Attachments

Comments 1

Avoma

(Unassigned)

Unconfirmed

Trading

26.3, 26.4 Release Candidate 1

Retrieved