OSDN Git Service

www
[chemicraft/chemicraft.git] / common / pcc / chemicraft / core / ChemiCraftCore.java
index dbfc825..563dce4 100644 (file)
@@ -17,12 +17,12 @@ import pcc.chemicraft.core.debug.CommandSetTile;
 import pcc.chemicraft.core.system.CommonProxy;
 import pcc.chemicraft.core.system.PacketHandler;
 import cpw.mods.fml.common.Mod;
+import cpw.mods.fml.common.Mod.Init;
 import cpw.mods.fml.common.Mod.Instance;
-import cpw.mods.fml.common.Mod.PostInit;
 import cpw.mods.fml.common.Mod.PreInit;
 import cpw.mods.fml.common.Mod.ServerStarting;
 import cpw.mods.fml.common.SidedProxy;
-import cpw.mods.fml.common.event.FMLPostInitializationEvent;
+import cpw.mods.fml.common.event.FMLInitializationEvent;
 import cpw.mods.fml.common.event.FMLPreInitializationEvent;
 import cpw.mods.fml.common.event.FMLServerStartingEvent;
 import cpw.mods.fml.common.network.NetworkMod;
@@ -197,8 +197,8 @@ public class ChemiCraftCore extends ChemiCraft{
 
 
 
-       @PostInit
-       public void chemiPostLoadMethod(final FMLPostInitializationEvent event) {
+       @Init
+       public void chemiPostLoadMethod(final FMLInitializationEvent event) {
                this.thread = new Thread(this);
                this.event = event;
                this.thread.start();
@@ -219,9 +219,9 @@ public class ChemiCraftCore extends ChemiCraft{
        public void run() {
                while (true) {
                        if (proxy != null && instance != null) {
-                               this.settingProcessing(event);
-                               this.apiProcessing(event);
-                               this.debug(event);
+                               this.settingProcessing((FMLInitializationEvent) event);
+                               this.apiProcessing((FMLInitializationEvent) event);
+                               this.debug((FMLInitializationEvent) event);
                                break;
                        }
                }
@@ -229,7 +229,7 @@ public class ChemiCraftCore extends ChemiCraft{
 
 
 
-       protected void settingProcessing(final FMLPostInitializationEvent event) {
+       protected void settingProcessing(final FMLInitializationEvent event) {
 
                this.registerItem.start();
                this.registerBlock.start();
@@ -248,7 +248,7 @@ public class ChemiCraftCore extends ChemiCraft{
 
 
 
-       private void apiProcessing(final FMLPostInitializationEvent event) {
+       private void apiProcessing(final FMLInitializationEvent event) {
 
                for (int i = 0; i < api.getChemicalCellsName().sizeKeysList(); i++)
                {
@@ -270,7 +270,7 @@ public class ChemiCraftCore extends ChemiCraft{
 
 
 
-       private void debug(final FMLPostInitializationEvent event) {
+       private void debug(final FMLInitializationEvent event) {
                this.proxy.registerTickHandler();
                this.api.addCompound("Debug");
                this.api.settingCompoundHandler("Debug", new CompoundDebug());