Merge pull request #449 from Vanhal/patch-1
Avoid NPE in the fuel handler
This commit is contained in:
commit
d8de516753
1 changed files with 1 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue