OSDN Git Service

鉱石生成がAPIの処理に入っていなかったのを修正
authormozipi <mozipi@users.sourceforge.jp>
Mon, 11 Feb 2013 08:06:39 +0000 (17:06 +0900)
committermozipi <mozipi@users.sourceforge.jp>
Mon, 11 Feb 2013 08:06:39 +0000 (17:06 +0900)
common/pcc/chemicraft/ChemiCraft.java

index cfeb7ff..e0981e9 100644 (file)
@@ -316,14 +316,6 @@ public class ChemiCraft {
                        Character.valueOf('A'), new ItemStack(this.itemAtoms, 1, 0),
                });
 
-               //鉱石を追加します
-               api.addAtomsOre(Block.blockDiamond.blockID, 0, 5, 5, 20); //テスト用。ダイヤモンドブロックを生成します
-
-               //鉱石の生成
-               for (int i = 0; i < api.getAtomsOreIDList().size(); i++) {
-                       GameRegistry.registerWorldGenerator(new WorldGenAtomsOre(api.getAtomsOreIDList().get(i), api.getAtomsOreMetaList().get(i), api.getAtomsOreSizeList().get(i), api.getAtomsOreFrequencyList().get(i), api.getAtomsOrePosYList().get(i)));
-               }
-
                //化合物を追加します
                api.addLangCompound("ja_JP", "ChlorousAcid", "亜塩素酸");
 
@@ -373,6 +365,12 @@ public class ChemiCraft {
                for (int i = 0; i < api.getCompoundsLang().size(); i++) {
                        this.nameAuxiliary.addName(itemCompounds, api.getCompoundsLang().get(i), api.getCompoundsLangName().toArray());
                }
+
+               //鉱石の生成
+               for (int i = 0; i < api.getAtomsOreIDList().size(); i++) {
+                       GameRegistry.registerWorldGenerator(new WorldGenAtomsOre(api.getAtomsOreIDList().get(i), api.getAtomsOreMetaList().get(i), api.getAtomsOreSizeList().get(i), api.getAtomsOreFrequencyList().get(i), api.getAtomsOrePosYList().get(i)));
+               }
+
        }
 
        private void debug(final FMLPostInitializationEvent event) {
@@ -388,6 +386,9 @@ public class ChemiCraft {
                                new ItemStack(Block.stone, 1, 1)
                },
                new ItemStack(Block.dirt, 1, 0));
+
+               //鉱石を追加します
+               api.addAtomsOre(Block.blockDiamond.blockID, 0, 5, 5, 20);
        }
 
 }