Add config for harvesting jungle wood when cocoa exists

This commit is contained in:
tterrag1098 committed 2014-12-30 15:29:22 -05:00
1 parent a645601803
commit a819618a47
2 files changed
+10 -4

No files matched your search

@@ -263,7 +263,7 @@ public final class Config {
public static boolean disableFarmNotification = false;
public static boolean farmEssenceBerriesEnabled = true;
public static boolean farmManaBeansEnabled = false;
public static boolean farmHarvestJungleWhenCocoa = false;
public static int magnetPowerUsePerSecondRF = 1;
public static int magnetPowerCapacityRF = 100000;
@@ -921,6 +921,9 @@ public final class Config {
farmManaBeansEnabled = config.get(sectionFarm.name, "farmEssenceBerriesEnabled", farmManaBeansEnabled,
"This setting controls whether mana beans from Thaumcraft can be harvested by the farm.").getBoolean();
farmHarvestJungleWhenCocoa = config.get(sectionFarm.name, "farmHarvestJungleWhenCocoa", farmHarvestJungleWhenCocoa,
"If this is enabled the farm will harvest jungle wood even if it has cocoa beans in its inventory.").getBoolean();
combustionGeneratorUseOpaqueModel = config.get(sectionAesthetic.name, "combustionGeneratorUseOpaqueModel", combustionGeneratorUseOpaqueModel,
"If set to true: fluid will not be shown in combustion generator tanks. Improves FPS. ").getBoolean(combustionGeneratorUseOpaqueModel);
@@ -1,7 +1,5 @@
package crazypants.enderio.machine.farm.farmers;
import crazypants.enderio.machine.farm.TileFarmStation;
import crazypants.util.BlockCoord;
import net.minecraft.block.Block;
import net.minecraft.block.BlockLog;
import net.minecraft.init.Blocks;
@@ -10,6 +8,9 @@ import net.minecraft.item.ItemStack;
import net.minecraft.util.Direction;
import net.minecraft.world.World;
import net.minecraftforge.common.util.ForgeDirection;
import crazypants.enderio.config.Config;
import crazypants.enderio.machine.farm.TileFarmStation;
import crazypants.util.BlockCoord;
public class CocoaFarmer extends CustomSeedFarmer
{
@@ -17,7 +18,9 @@ public class CocoaFarmer extends CustomSeedFarmer
{
super(Blocks.cocoa, new ItemStack(Items.dye,1,3));
this.requiresFarmland = false;
this.disableTreeFarm = true;
if (!Config.farmHarvestJungleWhenCocoa) {
this.disableTreeFarm = true;
}
}
@Override