Air is not a fuel. Closes #1922

This commit is contained in:
drcrazy 2019-12-25 16:14:24 +03:00
parent a37a6e29a5
commit a99acbfd41

View file

@ -64,6 +64,9 @@ public class SolidFuelGeneratorBlockEntity extends PowerAcceptorBlockEntity impl
} }
public static int getItemBurnTime(@Nonnull ItemStack stack) { public static int getItemBurnTime(@Nonnull ItemStack stack) {
if (stack.isEmpty()){
return 0;
}
Map<Item, Integer> burnMap = AbstractFurnaceBlockEntity.createFuelTimeMap(); Map<Item, Integer> burnMap = AbstractFurnaceBlockEntity.createFuelTimeMap();
if(burnMap.containsKey(stack.getItem())){ if(burnMap.containsKey(stack.getItem())){
return burnMap.get(stack.getItem()) / 4; return burnMap.get(stack.getItem()) / 4;