Fixed NPE thrown when brewing event is fired and not all slots are filled. Closes #1564

This commit is contained in:
Lex Manos committed 2014-12-10 05:12:36 -08:00
1 parent 08960ffb7b
commit 924db0ff03
1 file changed
+1 -1
@@ -391,7 +391,7 @@ public class ForgeEventFactory
{
ItemStack[] tmp = new ItemStack[stacks.length];
for (int x = 0; x < tmp.length; x++)
tmp[x] = stacks[x].copy();
tmp[x] = ItemStack.copyItemStack(stacks[x]);
PotionBrewEvent.Pre event = new PotionBrewEvent.Pre(tmp);
if (MinecraftForge.EVENT_BUS.post(event))