mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Update BuildCraft API to 218FB4A
This commit is contained in:
1 parent
5e17742c45
commit
e860089535
127 files changed
+2015
-2634
No files matched your search
@@ -2,10 +2,12 @@ package mekanism.common;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
import buildcraft.api.mj.MjAPI;
|
||||
import mekanism.api.gas.Gas;
|
||||
import mekanism.common.config.MekanismConfig.general;
|
||||
import mekanism.common.util.MekanismUtils;
|
||||
import net.minecraftforge.fluids.Fluid;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
import net.minecraftforge.fml.common.ModAPIManager;
|
||||
import buildcraft.api.fuels.BuildcraftFuelRegistry;
|
||||
import buildcraft.api.fuels.IFuel;
|
||||
@@ -28,7 +30,7 @@ public class FuelHandler
|
||||
|
||||
if(BCPresent() && gas.hasFluid() && BuildcraftFuelRegistry.fuel != null)
|
||||
{
|
||||
IFuel bcFuel = BuildcraftFuelRegistry.fuel.getFuel(gas.getFluid());
|
||||
IFuel bcFuel = BuildcraftFuelRegistry.fuel.getFuel(new FluidStack(gas.getFluid(), 1));
|
||||
|
||||
if(bcFuel != null)
|
||||
{
|
||||
@@ -56,7 +58,7 @@ public class FuelHandler
|
||||
public FuelGas(IFuel bcFuel)
|
||||
{
|
||||
burnTicks = bcFuel.getTotalBurningTime() / Fluid.BUCKET_VOLUME;
|
||||
energyPerTick = bcFuel.getPowerPerCycle() * general.FROM_RF;
|
||||
energyPerTick = bcFuel.getPowerPerCycle() * MjAPI.MJ;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user