Fix Integration Stages

This commit is contained in:
AlgorithmX2
2014-08-08 00:36:31 -05:00
parent c192576ab5
commit 3a93c8115c
2 changed files with 14 additions and 1 deletions
+12
View File
@@ -30,6 +30,12 @@ public class IntegrationNode
name = n;
}
@Override
public String toString()
{
return shortName.name() + ":" + state.name();
}
void Call(IntegrationStage stage)
{
if ( state != IntegrationStage.FAILED )
@@ -66,12 +72,18 @@ public class IntegrationNode
else
throw new ModNotInstalled( modID );
state = IntegrationStage.INIT;
break;
case INIT:
mod.Init();
state = IntegrationStage.POSTINIT;
break;
case POSTINIT:
mod.PostInit();
state = IntegrationStage.READY;
break;
case FAILED:
default: