minor plugin cleanup

This commit is contained in:
Nirek-K committed 2015-07-01 01:34:50 -05:00
1 parent a972287513
commit d882b0cf0a
2 files changed
+3 -1

No files matched your search

@@ -24,6 +24,7 @@ import cpw.mods.fml.common.registry.GameRegistry;
import forestry.api.farming.Farmables;
import forestry.core.config.Defaults;
import forestry.core.proxy.Proxies;
import forestry.farming.logic.FarmableBasicFruit;
import forestry.farming.logic.FarmableGenericCrop;
import forestry.farming.logic.FarmableGenericSapling;
@@ -74,5 +75,6 @@ public class PluginBiomesOPlenty extends ForestryPlugin {
Farmables.farmables.get("farmArboreal").add(new FarmableGenericSapling(BoPSaplings, 15, BoPPersimmon));
Farmables.farmables.get("farmVegetables").add(new FarmableGenericCrop(new ItemStack(BoPTurnipSeeds, 1, 0), BoPTurnip, 7));
Farmables.farmables.get("farmOrchard").add(new FarmableBasicFruit(BoPTurnip, 7));
}
}
@@ -289,7 +289,7 @@ public class PluginIC2 extends ForestryPlugin {
FMLInterModComms.sendMessage(Defaults.MOD, "add-farmable-sapling", imc);
}
FluidStack biogas = FluidRegistry.getFluidStack("ic2biogas", 1000); // 80% value of biomass in the biogas engine
FluidStack biogas = FluidRegistry.getFluidStack("ic2biogas", 1000);
if (biogas != null && PluginManager.Module.ENERGY.isEnabled()) {
FuelManager.bronzeEngineFuel.put(biogas.getFluid(), new EngineBronzeFuel(Fluids.BIOMASS.getFluid(),
Defaults.ENGINE_FUEL_VALUE_BIOMASS, (int) ((Defaults.ENGINE_CYCLE_DURATION_BIOMASS * GameMode.getGameMode().getFloatSetting("fuel.biomass.biogas"))), 1));