diff --git a/src/main/java/online/meinkraft/customvillagertrades/trade/CustomTrade.java b/src/main/java/online/meinkraft/customvillagertrades/trade/CustomTrade.java index 95a4caf..89ff24e 100644 --- a/src/main/java/online/meinkraft/customvillagertrades/trade/CustomTrade.java +++ b/src/main/java/online/meinkraft/customvillagertrades/trade/CustomTrade.java @@ -73,7 +73,7 @@ public CustomTrade( recipe.addIngredient(firstIngredient); if(secondIngredient != null) recipe.addIngredient(secondIngredient); - + recipe.setPriceMultiplier(priceMultiplier.floatValue()); recipe.setExperienceReward(giveExperienceToPlayer); diff --git a/src/main/java/online/meinkraft/customvillagertrades/trade/CustomTradeManager.java b/src/main/java/online/meinkraft/customvillagertrades/trade/CustomTradeManager.java index ace98be..874c252 100644 --- a/src/main/java/online/meinkraft/customvillagertrades/trade/CustomTradeManager.java +++ b/src/main/java/online/meinkraft/customvillagertrades/trade/CustomTradeManager.java @@ -58,10 +58,11 @@ public void refreshTrades(Merchant merchant) { MerchantRecipe oldRecipe = oldRecipes.get(index); MerchantRecipe newRecipe = customTrade.getRecipe(); - // set the uses of the previous recipe so that players - // cant continually refresh uses by closing and opening - // the trade window + // set the uses and special price of the previous recipe so + // that players cant continually refresh uses and price by + // closing and opening the trade window newRecipe.setUses(oldRecipe.getUses()); + newRecipe.setSpecialPrice(oldRecipe.getSpecialPrice()); // add updated recipe newRecipes.add(newRecipe);