Skip to content

Commit

Permalink
Fix the chest loot chance being incorrect. Closes #134, #222
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbegt committed Jul 4, 2020
1 parent b2316cd commit f044579
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/main/java/iguanaman/hungeroverhaul/common/config/Config.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
package iguanaman.hungeroverhaul.common.config;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

import org.apache.logging.log4j.Logger;

import iguanaman.hungeroverhaul.HungerOverhaul;
import iguanaman.hungeroverhaul.library.Util;
import net.minecraft.util.text.TextFormatting;
Expand All @@ -8,11 +14,6 @@
import net.minecraftforge.fml.client.event.ConfigChangedEvent.OnConfigChangedEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import org.apache.logging.log4j.Logger;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

public class Config
{
Expand Down Expand Up @@ -445,8 +446,8 @@ public static <T> ConfigOption<T> putOptionInList(ConfigCategory category, Strin
public static boolean addHarvestCraftChestLoot;
public static final ConfigOption<Integer> chestLootMaxStackSizeOption = addOption(CATEGORY_HARVESTCRAFT, "chestLootMaxStackSize", 16, 1, null, 64, "Max stack size for food to be found in chests (addHarvestCraftChestLoot must be true)");
public static int chestLootMaxStackSize;
public static final ConfigOption<Integer> chestLootChanceOption = addOption(CATEGORY_HARVESTCRAFT, "chestLootChance", 5, 1, null, 5, "Weighted chance for food to be found in chests (addHarvestCraftChestLoot must be true)");
public static int chestLootChance;
public static final ConfigOption<Float> chestLootChanceOption = addOption(CATEGORY_HARVESTCRAFT, "chestLootChance", 1.0f, 0.0f, 1.0f, 1.0f, "Weighted chance for food to be found in chests (addHarvestCraftChestLoot must be true) Value must be between 0.0 and 1.0.");
public static float chestLootChance;
public static final ConfigOption<Boolean> foodsUnplantableOption = addOption(CATEGORY_HARVESTCRAFT, "foodsUnplantable", true, false, "Makes HarvestCraft foods unplantable, meaning seeds are required to plant crops");
public static boolean foodsUnplantable;

Expand Down

1 comment on commit f044579

@XxMasonBoyxX
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do i do with this

Please sign in to comment.