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