Replaced equals enum equality check with ==
This commit is contained in:
@@ -263,7 +263,7 @@ public class AEBaseTile extends TileEntity implements IOrientable, ICommonTile,
|
||||
this.forward = ForgeDirection.getOrientation( orientation & 0x7 );
|
||||
this.up = ForgeDirection.getOrientation( orientation >> 3 );
|
||||
|
||||
output = !this.forward.equals( old_Forward ) || !this.up.equals( old_Up );
|
||||
output = this.forward != old_Forward || this.up != old_Up;
|
||||
}
|
||||
|
||||
this.renderFragment = 100;
|
||||
|
||||
@@ -177,7 +177,7 @@ public class TileGrinder extends AEBaseInvTile implements ICrankable
|
||||
@Override
|
||||
public boolean canCrankAttach(ForgeDirection directionToCrank)
|
||||
{
|
||||
return this.getUp().equals( directionToCrank );
|
||||
return this.getUp() == directionToCrank;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -185,7 +185,7 @@ public class TileCharger extends AENetworkPowerTile implements ICrankable
|
||||
@Override
|
||||
public boolean canCrankAttach(ForgeDirection directionToCrank)
|
||||
{
|
||||
return this.getUp().equals( directionToCrank ) || this.getUp().getOpposite().equals( directionToCrank );
|
||||
return this.getUp() == directionToCrank || this.getUp().getOpposite() == directionToCrank;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user