Air is not a fuel. Closes #1922
This commit is contained in:
parent
a37a6e29a5
commit
a99acbfd41
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue