mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-20 20:12:30 +00:00
Fixed a transition crash
This commit is contained in:
1 parent
6276439c51
commit
6bae353118
1 file changed
+2
-2
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user