OSDN Git Service

IDの変更
authorponkotate <ponkotate@users.sourceforge.jp>
Sun, 25 Nov 2012 04:49:34 +0000 (13:49 +0900)
committerponkotate <ponkotate@users.sourceforge.jp>
Sun, 25 Nov 2012 04:49:34 +0000 (13:49 +0900)
集気ビン…25000
元素…25001
化合物…25002

src/ChemiCraft.java
src/CreativeTabAtoms.java

index 5444edd..313199e 100644 (file)
@@ -57,13 +57,13 @@ public class ChemiCraft
 
        private ChemiCraftAPI chemiCraftAPI = ChemiCraftAPI.instance;
 
+       public static int gasCollectingBottleID;
        public static int atomsID;
        public static int compoundsID;
-       public static int gasCollectingBottleID;
 
+       public static Item itemGasCollectingBottle;
        public static Item itemAtoms;
        public static Item itemCompounds;
-       public static Item itemGasCollectingBottle;
 
        private Auxiliary Auxiliary = new Auxiliary();
        private Auxiliary.NameAuxiliary NameAuxiliary = Auxiliary.new NameAuxiliary();
@@ -81,22 +81,22 @@ public class ChemiCraft
        public void chemiPreLoadMethod(FMLPreInitializationEvent event)
        {
                Configuration cfg = new Configuration(event.getSuggestedConfigurationFile());
+               Property gasCollectingBottleIDProp = cfg.getItem("gasCollectingBottleID", 25000);
                cfg.load();
-               Property atomsIDProp = cfg.getItem("atomsID", 25000);
-               Property compoundsIDProp = cfg.getItem("compoundsID", 25001);
-               Property gasCollectingBottleIDProp = cfg.getItem("gasCollectingBottleID", 25002);
+               Property atomsIDProp = cfg.getItem("atomsID", 25001);
+               Property compoundsIDProp = cfg.getItem("compoundsID", 25002);
+               gasCollectingBottleID = gasCollectingBottleIDProp.getInt();
                atomsID = atomsIDProp.getInt();
                compoundsID = compoundsIDProp.getInt();
-               gasCollectingBottleID = gasCollectingBottleIDProp.getInt();
                cfg.save();
        }
 
        @Mod.PostInit // ModLoader.load\83\81\83\\83b\83h\82Æ\93¯\93\99
        public void chemiPostLoadMethod(FMLPostInitializationEvent event)
        {
+               itemGasCollectingBottle = new ItemGasCollectingBottle(gasCollectingBottleID).setItemName("gasCollectingBottle");
                itemAtoms = new ItemAtoms(atomsID).setItemName("atoms");
                itemCompounds = new ItemCompounds(compoundsID).setItemName("compounds");
-               itemGasCollectingBottle = new ItemGasCollectingBottle(gasCollectingBottleID).setItemName("gasCollectingBottle");
 
                NameAuxiliary.addName(itemAtoms, atomsName);
                NameAuxiliary.addName(itemAtoms, "ja_JP", atomsNameJP);
index 582de5f..58bd78b 100644 (file)
@@ -22,7 +22,7 @@ public class CreativeTabAtoms extends CreativeTabs{
        @SideOnly(Side.CLIENT)
        public String getTranslatedTabLabel()
        {
-               return "TabAtoms";
+               return "Atoms";
        }
 
 }