Reduce scope of variables

This commit is contained in:
thatsIch
2015-09-25 22:52:41 +02:00
parent f4ff28d2a6
commit 0387d30d1c
78 changed files with 174 additions and 218 deletions
@@ -98,13 +98,13 @@ public class ToolDebugCard extends AEBaseItem
IPathingGrid pg = g.getCache( IPathingGrid.class );
if( pg.getControllerState() == ControllerState.CONTROLLER_ONLINE )
{
int length = 0;
Set<IGridNode> next = new HashSet<IGridNode>();
next.add( node );
int maxLength = 10000;
int length = 0;
outer:
while( !next.isEmpty() )
{
+1 -1
View File
@@ -65,10 +65,10 @@ public class ToolEraser extends AEBaseItem
Block blk = world.getBlock( x, y, z );
int meta = world.getBlockMetadata( x, y, z );
int blocks = 0;
List<WorldCoord> next = new LinkedList<WorldCoord>();
next.add( new WorldCoord( x, y, z ) );
int blocks = 0;
while( blocks < BLOCK_ERASE_LIMIT && !next.isEmpty() )
{
List<WorldCoord> c = next;