mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 16:54:22 +00:00
Fixed NPE thrown when brewing event is fired and not all slots are filled. Closes #1564
This commit is contained in:
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))
|
||||
|
||||
Reference in new issue
Block a user