mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 21:19:00 +01:00
SPIGOT-1545: Populate Vanilla villager trades correctly.
This commit is contained in:
parent
41c02c0efd
commit
32587ed8e7
@ -10,8 +10,10 @@ public class CraftMerchantRecipe extends MerchantRecipe {
|
||||
private final net.minecraft.server.MerchantRecipe handle;
|
||||
|
||||
public CraftMerchantRecipe(net.minecraft.server.MerchantRecipe merchantRecipe) {
|
||||
super(null, 0);
|
||||
super(CraftItemStack.asBukkitCopy(merchantRecipe.sellingItem), 0);
|
||||
this.handle = merchantRecipe;
|
||||
addIngredient(CraftItemStack.asBukkitCopy(merchantRecipe.buyingItem1));
|
||||
addIngredient(CraftItemStack.asBukkitCopy(merchantRecipe.buyingItem2));
|
||||
}
|
||||
|
||||
public CraftMerchantRecipe(ItemStack result, int uses, int maxUses, boolean experienceReward) {
|
||||
|
Loading…
Reference in New Issue
Block a user