Skip to content

Commit

Permalink
Make new left click/right click seed options backwards compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
squeek502 committed Dec 1, 2015
1 parent 2af56ad commit a0abc39
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions src/main/java/iguanaman/hungeroverhaul/config/IguanaConfig.java
Expand Up @@ -287,6 +287,14 @@ public static <T> ConfigOption<T> putOptionInList(ConfigCategory category, Strin
public static final ConfigOption<Boolean> addLowStatWeaknessOption = removeOption(CATEGORY_LOW_STATS, "addLowStatWeakness", true);
@Deprecated
public static final ConfigOption<Boolean> addLowStatMiningSlowdownOption = removeOption(CATEGORY_LOW_STATS, "addLowStatMiningSlowdown", true);
@Deprecated
public static final ConfigOption<Integer> seedsPerHarvestMinOption = removeOption(CATEGORY_HARVESTING, "seedsPerHarvestMin", 0);
@Deprecated
public static int seedsPerHarvestMin;
@Deprecated
public static final ConfigOption<Integer> seedsPerHarvestMaxOption = removeOption(CATEGORY_HARVESTING, "seedsPerHarvestMax", 0);
@Deprecated
public static int seedsPerHarvestMax;

public static void init(File configDir, File oldConfigFile)
{
Expand Down Expand Up @@ -408,10 +416,12 @@ public static void reload(Configuration config)
childDurationMultiplier = childDurationMultiplierOption.get(config);
milkedTimeout = milkedTimeoutOption.get(config);
modifyCropDrops = modifyCropDropsOption.get(config);
seedsPerHarvestRightClickMin = seedsPerHarvestRightClickMinOption.get(config);
seedsPerHarvestRightClickMax = seedsPerHarvestRightClickMaxOption.get(config);
seedsPerHarvestBreakMin = seedsPerHarvestBreakMinOption.get(config);
seedsPerHarvestBreakMax = seedsPerHarvestBreakMaxOption.get(config);
seedsPerHarvestRightClickMin = seedsPerHarvestRightClickMinOption.getBackwardsCompatible(config, seedsPerHarvestMinOption);
seedsPerHarvestRightClickMax = seedsPerHarvestRightClickMaxOption.getBackwardsCompatible(config, seedsPerHarvestMaxOption);
seedsPerHarvestBreakMin = seedsPerHarvestBreakMinOption.getBackwardsCompatible(config, seedsPerHarvestMinOption);
seedsPerHarvestBreakMax = seedsPerHarvestBreakMaxOption.getBackwardsCompatible(config, seedsPerHarvestMaxOption);
seedsPerHarvestMin = seedsPerHarvestRightClickMin;
seedsPerHarvestMax = seedsPerHarvestRightClickMax;
producePerHarvestMin = producePerHarvestMinOption.get(config);
producePerHarvestMax = producePerHarvestMaxOption.get(config);
bonemealEffectiveness = bonemealEffectivenessOption.get(config);
Expand Down

0 comments on commit a0abc39

Please sign in to comment.