Fixes an issue when starting without IC2 being enabled.
This commit is contained in:
parent
6e6e51dc20
commit
f598fb3cc4
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue