Fixed Bug: #1076 - Changing config Crashs NEI Recepie view

This commit is contained in:
AlgorithmX2 2014-09-14 00:17:34 -05:00
parent c4b8940c1d
commit 9952c1e3da

View file

@ -39,7 +39,7 @@ public class ColoredItemDefinition implements AEColoredItemDefinition
{
ItemStackSrc is = colors[color.ordinal()];
if ( comparableItem == null )
if ( comparableItem == null || is == null )
return false;
return comparableItem.getItem() == is.item && comparableItem.getItemDamage() == is.damage;