Fixes an issue when starting without IC2 being enabled.

This commit is contained in:
Sebastian Hartte 2016-10-28 20:45:58 +02:00 committed by shartte
parent 6e6e51dc20
commit f598fb3cc4
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ public class IC2 implements IIntegrationModule
@Reflected
public static IC2 instance;
private BiFunction<TileEntity, IExternalPowerSink, IC2PowerSink> powerSinkFactory = ( ( te, sink ) -> IC2PowerSinkStub.INSTANCE );
private static BiFunction<TileEntity, IExternalPowerSink, IC2PowerSink> powerSinkFactory = ( ( te, sink ) -> IC2PowerSinkStub.INSTANCE );
@Override
public void init() throws Throwable
@ -55,6 +55,6 @@ public class IC2 implements IIntegrationModule
*/
public static IC2PowerSink createPowerSink( TileEntity tileEntity, IExternalPowerSink externalSink )
{
return instance.powerSinkFactory.apply( tileEntity, externalSink );
return powerSinkFactory.apply( tileEntity, externalSink );
}
}