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

This commit is contained in:
Lex Manos committed 2014-12-11 05:25:13 -08:00
1 parent 81086375e8
commit f60f7d9aa6
1 file changed
+1 -1
@@ -261,7 +261,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))