summaryrefslogtreecommitdiff
path: root/src/main/java/darkknight
diff options
context:
space:
mode:
authorThe Dark Knight <sor1n@users.noreply.github.com>2015-08-22 00:51:54 +0200
committerThe Dark Knight <sor1n@users.noreply.github.com>2015-08-22 00:51:54 +0200
commitc5c410ee5e3f1a96cd93c746beddd4d9e48a63be (patch)
treeffb8e7c3a50c34d561ea8f70e41b3269d444d8ad /src/main/java/darkknight
parent79ce797db01e6485fc20b67bdb1e8c09b81bf195 (diff)
Limiting black and blue hearts a player can pick
Diffstat (limited to 'src/main/java/darkknight')
-rw-r--r--src/main/java/darkknight/jewelrycraft/config/ConfigHandler.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/darkknight/jewelrycraft/config/ConfigHandler.java b/src/main/java/darkknight/jewelrycraft/config/ConfigHandler.java
index 12239e5..1f45d0a 100644
--- a/src/main/java/darkknight/jewelrycraft/config/ConfigHandler.java
+++ b/src/main/java/darkknight/jewelrycraft/config/ConfigHandler.java
@@ -30,6 +30,9 @@ public class ConfigHandler
public static int GEM_CHEST_MAX;
public static int FURNACE_MIN_INGOT_STACK;
public static int FURNACE_MAX_INGOT_STACK;
+
+ public static int MAX_BLACK_HEARTS_PICKUP;
+ public static int MAX_BLUE_HEARTS_PICKUP;
public static boolean CRYSTAL_GLOW;
public static boolean CRYSTAL_PARTICLES;
@@ -52,7 +55,7 @@ public class ConfigHandler
public static boolean ENABLE_WORLD_GEN = true;
public static boolean ORE_GEN = true;
public static boolean CRYSTAL_GEN = true;
- public static boolean STRUCTURES[] = {true, true, true, true, true, true};
+ public static boolean STRUCTURES[] = {tr ue, true, true, true, true, true};
public void loadConfig(FMLPreInitializationEvent event)
{
@@ -86,6 +89,8 @@ public class ConfigHandler
CRYSTAL_PARTICLES = config.getBoolean("Crystal Particles", categories[2], true, "If false, then crystal will no longer spawn particles");
HEARTS_DESPAWN = config.getBoolean("Hearts Despawn", categories[2], true, "If false, then Hearts and Half-hearts will no longer despawn");
JEWELRY_INFO = config.getBoolean("Jewelry Info", categories[2], true, "If false, then extra info won't be show when hovering over a jewelery.");
+ MAX_BLACK_HEARTS_PICKUP = config.getInt("Max Black Hearts Pickup", categories[2], Integer.MAX_VALUE, 0, Integer.MAX_VALUE, "Determines how many black hearts can a player pick up.");
+ MAX_BLUE_HEARTS_PICKUP = config.getInt("Max Blue Hearts Pickup", categories[2], Integer.MAX_VALUE, 0, Integer.MAX_VALUE, "Determines how many blue hearts can a player pick up.");
ENABLE_WORLD_GEN = config.getBoolean("World Generation", categories[3], true, "If false, nothing will generate (this includes ore)");
ORE_GEN = config.getBoolean("Ore Generation", categories[3], true, "If false, ores won't generate");