Fixed BC fuel energy gen. Closes #1524

This commit is contained in:
drcrazy 2018-05-29 13:50:06 +03:00
parent 874b08e919
commit 362a93af3d

View file

@ -55,7 +55,8 @@ public class BuildcraftCompat implements ICompatModule {
public void postInit(FMLPostInitializationEvent event) { public void postInit(FMLPostInitializationEvent event) {
if (CompatConfigs.allowBCFuels) { if (CompatConfigs.allowBCFuels) {
for (IFuel fuel : FuelRegistry.INSTANCE.getFuels()) { for (IFuel fuel : FuelRegistry.INSTANCE.getFuels()) {
GeneratorRecipeHelper.registerFluidRecipe(EFluidGenerator.THERMAL, fuel.getFluid().getFluid(), (int) (fuel.getPowerPerCycle() / RebornCoreConfig.euPerFU)); // getPowerPerCycle returns micro mj values
GeneratorRecipeHelper.registerFluidRecipe(EFluidGenerator.THERMAL, fuel.getFluid().getFluid(), (int) (fuel.getPowerPerCycle() / RebornCoreConfig.euPerFU * 1000));
} }
} }
} }