From 2347fc294f0d29847125b0d0d2ddd7243c34a7df Mon Sep 17 00:00:00 2001 From: gecko10000 <60494179+gecko10000@users.noreply.github.com> Date: Wed, 10 Nov 2021 12:54:31 +0000 Subject: [PATCH] Fix IndexOutOfBoundsException for fake brew event by adding to list instead of setting the index (which doesn't work) (#4655) --- .../com/gmail/nossr50/skills/alchemy/AlchemyPotionBrewer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/skills/alchemy/AlchemyPotionBrewer.java b/src/main/java/com/gmail/nossr50/skills/alchemy/AlchemyPotionBrewer.java index 0fa16aa7b..c6e8cff4d 100644 --- a/src/main/java/com/gmail/nossr50/skills/alchemy/AlchemyPotionBrewer.java +++ b/src/main/java/com/gmail/nossr50/skills/alchemy/AlchemyPotionBrewer.java @@ -129,7 +129,7 @@ public final class AlchemyPotionBrewer { inputList.add(input); if (output != null) { - outputList.set(i, output.toItemStack(item.getAmount()).clone()); + outputList.add(output.toItemStack(item.getAmount()).clone()); } }