Skip to content

Commit ebf6b50

Browse files
committed
Correct villager recipe uses and cooldown exhaustion
1 parent fb4d818 commit ebf6b50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/main/java/com/xzh/economy/VillagerTradeManager.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ private RecipeSet buildRecipeSet(Villager.Profession profession, UUID playerId)
218218
// MerchantRecipe uses are shared by every player who opens this villager.
219219
// Keep the vanilla recipe open and enforce the real limit by player UUID in onTrade.
220220
boolean exhaustedForPlayer = used.getOrDefault(offer.id(), 0L) > now;
221-
MerchantRecipe recipe = new MerchantRecipe(output, exhaustedForPlayer ? 1 : 0, 1, false, 0, 0.0f);
221+
MerchantRecipe recipe = new MerchantRecipe(output, 1, exhaustedForPlayer ? 1 : 0, false, 0, 0.0f);
222222
for (ItemStack input : inputs) recipe.addIngredient(input);
223223
result.add(recipe);
224224
recipeOfferIds.add(offer.id());

0 commit comments

Comments
 (0)