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

This commit is contained in:
gecko10000 2021-11-10 12:54:31 +00:00 committed by GitHub
parent 7aaec5b707
commit 2347fc294f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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());
}
}