Separated TileEntity and External Power Sink arguments to IC2 to emphasize that they don't necessarily need to be the same, and that a tile entity is required for IC2.

This commit is contained in:
Sebastian Hartte
2016-10-28 20:16:39 +02:00
committed by shartte
parent 344958aefb
commit 6e6e51dc20
3 changed files with 11 additions and 8 deletions
@@ -42,9 +42,9 @@ public class IC2PowerSinkAdapter extends BasicSink implements IC2PowerSink
private final Set<EnumFacing> validFaces = EnumSet.allOf( EnumFacing.class );
public IC2PowerSinkAdapter( IExternalPowerSink powerSink )
public IC2PowerSinkAdapter( TileEntity tileEntity, IExternalPowerSink powerSink )
{
super( (TileEntity) powerSink, 0, Integer.MAX_VALUE );
super( tileEntity, 0, Integer.MAX_VALUE );
this.powerSink = powerSink;
}