-
-
Notifications
You must be signed in to change notification settings - Fork 944
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix several bugs in villager trading (#3230)
* Fix several bugs in villager trading These changes should fix issues with trades that have more than one item in the output stack, trades that cost more than one emerald, and trades with two input items, such as trades for enchanted books and tipped arrows. * Add more tests for villager trading - Add a test trade taking 1 emerald and returning 4 glass - Add a test trade taking [36 emeralds, 1 book] and returning 1 wooden sword (any unstackable should work to accurately simulate an enchanted_book trade) - Increase maximumNbTradeUses to 12 for all test trades --------- Co-authored-by: Romain Beaumont <[email protected]>
- Loading branch information
1 parent
9865ab7
commit 1caa2c2
Showing
3 changed files
with
97 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters