Deleted unnecessary casts with Eclipse
This commit is contained in:
@@ -206,7 +206,7 @@ public class PartP2PBCPower extends PartP2PTunnel<PartP2PBCPower> implements IPo
|
||||
public PowerReceiver getPowerReceiver(ForgeDirection side)
|
||||
{
|
||||
if ( side.equals( side ) )
|
||||
return ((BaseMJPerdition) pp).getPowerReceiver();
|
||||
return pp.getPowerReceiver();
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -169,7 +169,7 @@ public class PartP2PIC2Power extends PartP2PTunnel<PartP2PIC2Power> implements i
|
||||
if ( Options.isEmpty() )
|
||||
return amount;
|
||||
|
||||
PartP2PIC2Power x = (PartP2PIC2Power) Platform.pickRandom( Options );
|
||||
PartP2PIC2Power x = Platform.pickRandom( Options );
|
||||
|
||||
if ( x != null && x.OutputEnergyA <= 0.001 )
|
||||
{
|
||||
|
||||
@@ -80,7 +80,7 @@ public class PartP2PRedstone extends PartP2PTunnel<PartP2PRedstone>
|
||||
{
|
||||
PartP2PRedstone in = getInput();
|
||||
if ( in != null )
|
||||
putInput( ((PartP2PRedstone) in).power );
|
||||
putInput( in.power );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user