Fixed a transition crash
This commit is contained in:
parent
6276439c51
commit
6bae353118
1 changed files with 2 additions and 2 deletions
|
@ -204,7 +204,7 @@ public class MekanismRecipe implements IRecipe
|
|||
}
|
||||
}
|
||||
|
||||
if(MachineType.get(toReturn).supportsUpgrades)
|
||||
if(MachineType.get(toReturn) != null && MachineType.get(toReturn).supportsUpgrades)
|
||||
{
|
||||
Map<Upgrade, Integer> upgrades = new HashMap<Upgrade, Integer>();
|
||||
|
||||
|
@ -212,7 +212,7 @@ public class MekanismRecipe implements IRecipe
|
|||
{
|
||||
ItemStack itemstack = inv.getStackInSlot(i);
|
||||
|
||||
if(itemstack != null && MachineType.get(itemstack).supportsUpgrades)
|
||||
if(itemstack != null && MachineType.get(itemstack) != null && MachineType.get(itemstack).supportsUpgrades)
|
||||
{
|
||||
Map<Upgrade, Integer> stackMap = Upgrade.buildMap(itemstack.stackTagCompound);
|
||||
|
||||
|
|
Loading…
Reference in a new issue