Crash fix

This commit is contained in:
aidancbrady 2016-04-29 22:56:09 -04:00
parent cdcaabe59c
commit d98c4c181e

View file

@ -27,7 +27,7 @@ public abstract class MachineInput<INPUT extends MachineInput<INPUT>>
public static boolean inputContains(ItemStack container, ItemStack contained)
{
if(container.stackSize >= contained.stackSize)
if(container != null && container.stackSize >= contained.stackSize)
{
if(MekanismUtils.getOreDictName(container).contains("treeSapling"))
{