Browse Source

Fix IndexOutOfBoundsException for fake brew event by adding to list instead of setting the index (which doesn't work) (#4655)

gecko10000 3 years ago
parent
commit
2347fc294f

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

@@ -129,7 +129,7 @@ public final class AlchemyPotionBrewer {
             inputList.add(input);
             inputList.add(input);
 
 
             if (output != null) {
             if (output != null) {
-                outputList.set(i, output.toItemStack(item.getAmount()).clone());
+                outputList.add(output.toItemStack(item.getAmount()).clone());
             }
             }
         }
         }