Fix conversion rate BC-RF-Mekanism

This commit is contained in:
Tom Elfring committed 2017-07-17 15:30:19 +02:00
1 parent 16d2ef3960
commit f9c6dc011b
2 files changed
+6 -3

No files matched your search

@@ -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