Fixed another transition issue
This commit is contained in:
parent
2b2d9d69b3
commit
c7d3b77112
1 changed files with 4 additions and 1 deletions
|
@ -217,11 +217,14 @@ public class MekanismRecipe implements IRecipe
|
|||
Map<Upgrade, Integer> stackMap = Upgrade.buildMap(itemstack.stackTagCompound);
|
||||
|
||||
for(Map.Entry<Upgrade, Integer> entry : stackMap.entrySet())
|
||||
{
|
||||
if(entry != null && entry.getKey() != null && entry.getValue() != null)
|
||||
{
|
||||
upgrades.put(entry.getKey(), Math.min(entry.getKey().getMax(), upgrades.get(entry.getKey()) + entry.getValue()));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(toReturn.stackTagCompound == null)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue