Fixes #1076 Crash on shift clicking a recipe from NEI

This commit is contained in:
thatsIch 2015-03-24 13:42:32 +01:00
parent a4c38263d1
commit 3745e6ce8d

View file

@ -202,7 +202,7 @@ public class PacketNEIRecipe extends AppEngPacket
{
// check if the item in slot y matches the required item.
playerItemStack = playerInventory.getStackInSlot( i );
if ( playerItemStack != null && playerItemStack.getItem() == this.recipe[x][y].getItem() )
if ( playerItemStack != null && this.recipe[x][y] != null && playerItemStack.getItem() == this.recipe[x][y].getItem() )
{
if ( realForFake == Actionable.SIMULATE )
{