In vanilla multiplayer server
Now I think the multiplayer server is the reason. I have asked my friends, and they meet the same bug, too. Our server is 1.17.1 now, and there is still this bug.
According to my friends' guess, if a player cure a zombie villager, and other players who have had discounts isn't "there"(They didn't explain what's the "there" mean and I'm awaiting their response), the villager will cancel its discount for the players who are not there.
I used to have a try for that. By this way, I succeed in cancelling a farmer's discount for a online player who was building a ice farm about 8000 blocks away.
Video...I have no time to record it now. A few days later may be okay? Perhaps my friends will response and help me record it at that time.
The same bug found at 21w03a, 21w05a and 21w05b.
The Same Bug found at 21w05b。
The same bug was met at 21w05b.
I captured a zombie and gave it a axe with sharpness V. Then I used it to kill villagers in hard mode. After many times of killing, Villagers gave me a lot discount - Only one emerald is needed for each trading.
But later, some villagers cancelled their discount. I have 9 villagers, 2 of whom cancelled their discount. The extent to which the two villagers cancel the discount is not the same. One of them cancelled part of the discount(about once salvation from zombie villager), and the other cancelled all the discount. I don't know the reason.
Speculation: Raid, Hero of the Village and other players' salvation may affect the villager. Because the first villager who cancelled its discount was appeared after I completed a raid and got the hero of the village, and another player was saving it at that time.
Repeat the bug may be very hard. Some test will be done later.
Some Other Info:
Version: 21w05b
Java: OpenJDK 14
System: Windows 10
In vanilla multiplayer server
This fxxking bug plz turn it into "very important" plz plz plz
version 1.16, 1.16.1, 2, 3, 4, and 5, 1.17 ,1.17.1pre1, 1.17.1pre2 and 1.17.1rc1, this bug has crashed a lot of servers. In our server, the nether where was always loading were full of endermans and they broke everything. In another server, someone placed a red mushroom in the end, then they have to replace the end - these fxxking enderman destroied everything. They make a video.
plz mojang repair it we can't stand