diff options
| author | bspkrs <bspkrs@gmail.com> | 2013-12-16 14:19:04 -0500 |
|---|---|---|
| committer | bspkrs <bspkrs@gmail.com> | 2013-12-16 14:19:04 -0500 |
| commit | f15bc9e0abff4710d9860bd970b3b6820c5e78c6 (patch) | |
| tree | 6951055018820b7e604f3825a429c91b77e9eb27 /common/darkknight/jewelrycraft/config/ConfigHandler.java | |
| parent | 43ef55b2424eb49110e27d603adf95a84bf37560 (diff) | |
tested creation of rings with custom NBT - working!
reformatted source
Diffstat (limited to 'common/darkknight/jewelrycraft/config/ConfigHandler.java')
| -rw-r--r-- | common/darkknight/jewelrycraft/config/ConfigHandler.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/common/darkknight/jewelrycraft/config/ConfigHandler.java b/common/darkknight/jewelrycraft/config/ConfigHandler.java index 56eb42e..ab19b5b 100644 --- a/common/darkknight/jewelrycraft/config/ConfigHandler.java +++ b/common/darkknight/jewelrycraft/config/ConfigHandler.java @@ -9,23 +9,23 @@ public class ConfigHandler public static int idThiefGloves = 17493; public static int idShadowIngot = 17494; public static int idMolds = 17495; - public static int idRing = 17496; - + public static int idRing = 17496; + public static int idShadowOre = 1750; public static int idSmelter = 1751; public static int idMolder = 1752; public static int idJewelCraftingTable = 1753; - + private static boolean isInitialized = false; - + public static void preInit(FMLPreInitializationEvent e) { if (!isInitialized) { config = new Configuration(e.getSuggestedConfigurationFile()); - + config.load(); - + idThiefGloves = config.getItem("id.ThiefGloves", idThiefGloves).getInt(); idShadowIngot = config.getItem("id.ShadowIngot", idShadowIngot).getInt(); idMolds = config.getItem("id.Molds", idMolds).getInt(); @@ -34,9 +34,9 @@ public class ConfigHandler idSmelter = config.getBlock("id.Smelter", idSmelter).getInt(); idMolder = config.getBlock("id.Molder", idMolder).getInt(); idJewelCraftingTable = config.getBlock("id.JewelCraftingTable", idJewelCraftingTable).getInt(); - + config.save(); - + isInitialized = true; } } |
