소스 검색

Fix brewing stand not consuming items

Fixes #4225
Negation in commit fdd951f1f1890d4bcb62fb6d44fd576df63ad8f is faulty.
Ulrich Fink 5 년 전
부모
커밋
16d7b51497
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/java/com/gmail/nossr50/skills/alchemy/AlchemyPotionBrewer.java

+ 1 - 1
src/main/java/com/gmail/nossr50/skills/alchemy/AlchemyPotionBrewer.java

@@ -61,7 +61,7 @@ public final class AlchemyPotionBrewer {
 
         ItemStack ingredient = inventory.getIngredient().clone();
 
-        if (isEmpty(ingredient) && !isValidIngredient(player, ingredient)) {
+        if (!isEmpty(ingredient) && isValidIngredient(player, ingredient)) {
             if (ingredient.getAmount() <= 1) {
                 inventory.setIngredient(null);
             }