remove trailing whitespaces
This commit is contained in:
@@ -40,14 +40,14 @@ public class BlockCubeGenerator extends AEBaseBlock
|
||||
@Override
|
||||
public boolean onActivated(World w, int x, int y, int z,
|
||||
EntityPlayer player, int side, float hitX, float hitY, float hitZ) {
|
||||
|
||||
|
||||
TileCubeGenerator tcg = this.getTileEntity(w, x, y, z);
|
||||
if ( tcg != null )
|
||||
tcg.click( player );
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void registerBlockIcons(IIconRegister iconRegistry)
|
||||
{
|
||||
|
||||
@@ -97,40 +97,40 @@ public class ToolDebugCard extends AEBaseItem
|
||||
IGridNode center = g.getPivot();
|
||||
this.outputMsg( player, "This Node: " + node.toString() );
|
||||
this.outputMsg( player, "Center Node: " + center.toString() );
|
||||
|
||||
|
||||
IPathingGrid pg = g.getCache( IPathingGrid.class );
|
||||
if ( pg.getControllerState() == ControllerState.CONTROLLER_ONLINE )
|
||||
{
|
||||
int length = 0;
|
||||
|
||||
|
||||
HashSet<IGridNode> next = new HashSet<IGridNode>();
|
||||
next.add( node );
|
||||
|
||||
|
||||
int maxLength = 10000;
|
||||
|
||||
|
||||
outer: while ( ! next.isEmpty() )
|
||||
{
|
||||
HashSet<IGridNode> current = next;
|
||||
next = new HashSet<IGridNode>();
|
||||
|
||||
|
||||
for ( IGridNode n : current )
|
||||
{
|
||||
if ( n.getMachine() instanceof TileController )
|
||||
break outer;
|
||||
|
||||
|
||||
for ( IGridConnection c : n.getConnections() )
|
||||
next.add( c.getOtherSide( n ) );
|
||||
}
|
||||
|
||||
|
||||
length++;
|
||||
|
||||
|
||||
if ( length > maxLength )
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
this.outputMsg( player, "Cable Distance: " + length );
|
||||
}
|
||||
|
||||
|
||||
if ( center.getMachine() instanceof PartP2PTunnel )
|
||||
{
|
||||
this.outputMsg( player, "Freq: " + ((PartP2PTunnel) center.getMachine()).freq );
|
||||
|
||||
Reference in New Issue
Block a user