mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 06:42:56 +00:00
Fix conversion rate BC-RF-Mekanism
This commit is contained in:
1 parent
16d2ef3960
commit
f9c6dc011b
2 files changed
+6
-3
No files matched your search
@@ -58,7 +58,10 @@ public class FuelHandler
|
||||
public FuelGas(IFuel bcFuel)
|
||||
{
|
||||
burnTicks = bcFuel.getTotalBurningTime() / Fluid.BUCKET_VOLUME;
|
||||
energyPerTick = bcFuel.getPowerPerCycle() / MjAPI.MJ;
|
||||
|
||||
// getPowerPerCycle returns value in 1 BuildCraft micro MJ
|
||||
// 1 BuildCraft MJ equals 20 RF
|
||||
energyPerTick = bcFuel.getPowerPerCycle() / (double) MjAPI.MJ * 20 * general.FROM_RF;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -102,13 +102,13 @@ public class MekanismGenerators implements IModule
|
||||
{
|
||||
for(IFuel s : BuildcraftFuelRegistry.fuel.getFuels())
|
||||
{
|
||||
if(!(s.getFluid() == null || GasRegistry.containsGas(s.getFluid().getFluid().getName())))
|
||||
if(s.getFluid() != null && !GasRegistry.containsGas(s.getFluid().getFluid().getName()))
|
||||
{
|
||||
GasRegistry.register(new Gas(s.getFluid().getFluid()));
|
||||
}
|
||||
}
|
||||
|
||||
BuildcraftFuelRegistry.fuel.addFuel(MekanismFluids.Ethene.getFluid(), 240 * MjAPI.MJ, 40 * Fluid.BUCKET_VOLUME);
|
||||
BuildcraftFuelRegistry.fuel.addFuel(MekanismFluids.Ethene.getFluid(), (int)(240 * general.TO_RF / 20 * MjAPI.MJ), 40 * Fluid.BUCKET_VOLUME);
|
||||
}
|
||||
|
||||
//Update the config-dependent recipes after the recipes have actually been added in the first place
|
||||
|
||||
Reference in new issue
Block a user