Qualified field and method access

This commit is contained in:
yueh
2015-08-06 18:53:17 +02:00
parent 8234c6dbb5
commit a5287f6779
6 changed files with 21 additions and 21 deletions
@@ -160,21 +160,21 @@ public abstract class RotaryCraft extends IC2 implements AdvancedShaftPowerRecei
public final ArrayList<String> getMessages( World world, int x, int y, int z, int side )
{
String out;
if( power >= 1000000000 )
if( this.power >= 1000000000 )
{
out = String.format( "Receiving %.3f GW @ %d rad/s.", power / 1000000000.0D, omega );
out = String.format( "Receiving %.3f GW @ %d rad/s.", this.power / 1000000000.0D, this.omega );
}
else if( power >= 1000000 )
else if( this.power >= 1000000 )
{
out = String.format( "Receiving %.3f MW @ %d rad/s.", power / 1000000.0D, omega );
out = String.format( "Receiving %.3f MW @ %d rad/s.", this.power / 1000000.0D, this.omega );
}
else if( power >= 1000 )
else if( this.power >= 1000 )
{
out = String.format( "Receiving %.3f kW @ %d rad/s.", power / 1000.0D, omega );
out = String.format( "Receiving %.3f kW @ %d rad/s.", this.power / 1000.0D, this.omega );
}
else
{
out = String.format( "Receiving %d W @ %d rad/s.", power, omega );
out = String.format( "Receiving %d W @ %d rad/s.", this.power, this.omega );
}
ArrayList<String> messages = new ArrayList<String>( 1 );