SPIGOT-1545: Populate Vanilla villager trades correctly.
By: md_5 <git@md-5.net>
This commit is contained in:
		
					parent
					
						
							
								4d379a2627
							
						
					
				
			
			
				commit
				
					
						42a4bc80e2
					
				
			
		
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue