Merge pull request #449 from Vanhal/patch-1

Avoid NPE in the fuel handler
This commit is contained in:
Adubbz 2015-04-07 20:19:10 +10:00
commit d8de516753

View file

@ -71,6 +71,7 @@ public class FurnaceFuelHandler implements IFuelHandler
private static int getFuelValue(ItemStack stack)
{
if ( (stack==null) || (stack.getItem()==null) ) return 0;
Pair<Item, Integer> pair = Pair.of(stack.getItem(), stack.getItemDamage());
if (fuelList.containsKey(pair))