Steam engines accept vanilla fuels again.
This commit is contained in:
parent
6566cae096
commit
8653702e84
1 changed files with 8 additions and 3 deletions
|
@ -16,6 +16,7 @@ import net.minecraft.src.Item;
|
|||
import net.minecraft.src.ItemStack;
|
||||
import net.minecraft.src.Material;
|
||||
import net.minecraft.src.NBTTagCompound;
|
||||
import net.minecraft.src.TileEntityFurnace;
|
||||
import net.minecraft.src.buildcraft.core.CoreProxy;
|
||||
import net.minecraft.src.buildcraft.core.DefaultProps;
|
||||
import net.minecraft.src.buildcraft.core.Utils;
|
||||
|
@ -60,10 +61,10 @@ public class EngineStone extends Engine {
|
|||
return 0.08F;
|
||||
case Red:
|
||||
return 0.16F;
|
||||
}
|
||||
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isBurning() {
|
||||
|
@ -98,6 +99,10 @@ public class EngineStone extends Engine {
|
|||
if (itemstack == null)
|
||||
return 0;
|
||||
|
||||
int vanillaBurnTime = TileEntityFurnace.getItemBurnTime(itemstack);
|
||||
if(vanillaBurnTime > 0)
|
||||
return vanillaBurnTime;
|
||||
else
|
||||
return FMLCommonHandler.instance().fuelLookup(itemstack.getItem().shiftedIndex, itemstack.getItemDamage());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue