The bug
On servers, all players (on LAN servers, all players except the host) get displayed an incorrect price for discounted trades. Instead of the original price being displayed crossed out and the discounted price standing next to it, the discounted price is crossed out and an incorrect price stands next to it (that price being the original price discounted twice).
This is how it looks to the host of a LAN world / to the server:
[media]This is how it looks to all the other players:
[media]To reproduce
by @unknown
Create a new singleplayer world (superflat for convenience, creative).
Summon on a safe spot a villager, assign him the mason profession by placing down a stonecutter.
Open the world to you LAN and let a second account join.
Give the hero of the village status effect to both players:
/effect give @a hero_of_the_village 999 1 true
Try to trade with the mason one account, then the other.
❌ The guest account is displaying the incorrect price
Video
[media]Original report
Server side inventories do not apply the advertised price, instead applying the original full price. This is applicable to both buy and sell trades. If the world is copied to saves folder and played as a single player world, the proper price will be applied to the trade.
How to produce:
1. Download server jar file from most recent patch notes page.
2. Create server.
3. Trade with villagers on server.
Side Note: This bug also affects Realms servers.
Linked issues
is cloned by 1
is duplicated by 40
Attachments
Comments 25
Villager trades do apply discount, but it is displayed wrongly. Trade cost is (original_price - x)
, but it displayed as (original_price - x - x)
.
I cannot reproduce this in 1.14.1-pre1 and assumed that the 1.14.1-pre1 being added to affected versions in MC-151282 was a mistake. @unknown, if you want your ticket to be reopened, please leave a comment on that ticket.
I also was unable to reproduce this in 1.14.1-pre2, The trades and their GUIs are working on my dedicated server.
The same issue still exists, but only for villagers that previously were zombie villagers and have been cured. See MC-151282.
@unknown, this particular issue has been fixed in 1.14.1 Pre-Release 1, though a similar issue still exists. A report about that issue, MC-151282, is still left open.
Can confirm.
You should update the title for more visibility, something like: "Villager trades do no apply discount on dedicated servers".