Fix Integration Stages
This commit is contained in:
parent
c192576ab5
commit
3a93c8115c
2 changed files with 14 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -5,5 +5,6 @@ public enum IntegrationStage
|
|||
|
||||
PREINIT, INIT, POSTINIT,
|
||||
|
||||
FAILED
|
||||
FAILED, READY
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue