Fixed another transition issue

This commit is contained in:
Aidan C. Brady 2015-03-22 16:16:01 -04:00
parent 2b2d9d69b3
commit c7d3b77112

View file

@ -218,7 +218,10 @@ public class MekanismRecipe implements IRecipe
for(Map.Entry<Upgrade, Integer> entry : stackMap.entrySet()) for(Map.Entry<Upgrade, Integer> entry : stackMap.entrySet())
{ {
upgrades.put(entry.getKey(), Math.min(entry.getKey().getMax(), upgrades.get(entry.getKey()) + entry.getValue())); if(entry != null && entry.getKey() != null && entry.getValue() != null)
{
upgrades.put(entry.getKey(), Math.min(entry.getKey().getMax(), upgrades.get(entry.getKey()) + entry.getValue()));
}
} }
} }
} }