Fixed another transition issue
This commit is contained in:
parent
2b2d9d69b3
commit
c7d3b77112
1 changed files with 4 additions and 1 deletions
|
@ -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()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue