diff --git a/integration/IntegrationNode.java b/integration/IntegrationNode.java index b8254d37..e08e1680 100644 --- a/integration/IntegrationNode.java +++ b/integration/IntegrationNode.java @@ -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: diff --git a/integration/IntegrationStage.java b/integration/IntegrationStage.java index 38f0dd66..e42cd177 100644 --- a/integration/IntegrationStage.java +++ b/integration/IntegrationStage.java @@ -5,5 +5,6 @@ public enum IntegrationStage PREINIT, INIT, POSTINIT, - FAILED + FAILED, READY + }