Switched from FML Optional to AE Optional, lets me specify more interesting requirements for integration, and lets the config alter the resulting integration setup.
This commit is contained in:
@@ -32,8 +32,11 @@ public class IntegrationNode
|
||||
|
||||
void Call(IntegrationStage stage)
|
||||
{
|
||||
if ( isActive() )
|
||||
if ( state != IntegrationStage.FAILED )
|
||||
{
|
||||
if ( state.ordinal() > stage.ordinal() )
|
||||
return;
|
||||
|
||||
try
|
||||
{
|
||||
switch (stage)
|
||||
@@ -100,6 +103,9 @@ public class IntegrationNode
|
||||
|
||||
public boolean isActive()
|
||||
{
|
||||
if ( state == IntegrationStage.PREINIT )
|
||||
Call( IntegrationStage.PREINIT );
|
||||
|
||||
return state != IntegrationStage.FAILED;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user