From 8a3739d9bd6ddf38c60b1bf8c6055b8682152e7e Mon Sep 17 00:00:00 2001 From: thatsIch Date: Sat, 20 Sep 2014 22:37:36 +0200 Subject: [PATCH] Typo beginVisition --- me/GridConnection.java | 8 ++++---- me/GridNode.java | 6 +++--- me/cache/PathGridCache.java | 12 ++++++------ 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/me/GridConnection.java b/me/GridConnection.java index 8e6a11be..dc44ac5c 100644 --- a/me/GridConnection.java +++ b/me/GridConnection.java @@ -66,22 +66,22 @@ public class GridConnection implements IGridConnection, IPathItem if ( a.myGrid == null ) { GridPropagator gp = new GridPropagator( b.getInternalGrid() ); - a.beginVisition( gp ); + a.beginVisit( gp ); } else if ( b.myGrid == null ) { GridPropagator gp = new GridPropagator( a.getInternalGrid() ); - b.beginVisition( gp ); + b.beginVisit( gp ); } else if ( isNetworkABetter( a, b ) ) { GridPropagator gp = new GridPropagator( a.getInternalGrid() ); - b.beginVisition( gp ); + b.beginVisit( gp ); } else { GridPropagator gp = new GridPropagator( b.getInternalGrid() ); - a.beginVisition( gp ); + a.beginVisit( gp ); } } diff --git a/me/GridNode.java b/me/GridNode.java index 167dd97e..5578bbe1 100644 --- a/me/GridNode.java +++ b/me/GridNode.java @@ -163,7 +163,7 @@ public class GridNode implements IGridNode, IPathItem } @Override - public void beginVisition(IGridVisitor g) + public void beginVisit(IGridVisitor g) { Object tracker = new Object(); @@ -461,11 +461,11 @@ public class GridNode implements IGridNode, IPathItem public void validateGrid() { GridSplitDetector gsd = new GridSplitDetector( getInternalGrid().getPivot() ); - beginVisition( gsd ); + beginVisit( gsd ); if ( !gsd.pivotFound ) { GridPropagator gp = new GridPropagator( new Grid( this ) ); - beginVisition( gp ); + beginVisit( gp ); } } diff --git a/me/cache/PathGridCache.java b/me/cache/PathGridCache.java index c8aa7d8f..c7f2bb09 100644 --- a/me/cache/PathGridCache.java +++ b/me/cache/PathGridCache.java @@ -96,7 +96,7 @@ public class PathGridCache implements IPathingGrid channelsByBlocks = nodes * used; channelPowerUsage = (double) channelsByBlocks / 128.0; - myGrid.getPivot().beginVisition( new AdHocChannelUpdater( used ) ); + myGrid.getPivot().beginVisit( new AdHocChannelUpdater( used ) ); } else if ( controllerState == ControllerState.NO_CONTROLLER ) { @@ -112,12 +112,12 @@ public class PathGridCache implements IPathingGrid channelsByBlocks = nodes * used; channelPowerUsage = (double) channelsByBlocks / 128.0; - myGrid.getPivot().beginVisition( new AdHocChannelUpdater( used ) ); + myGrid.getPivot().beginVisit( new AdHocChannelUpdater( used ) ); } else if ( controllerState == ControllerState.CONTROLLER_CONFLICT ) { ticksUntilReady = 20; - myGrid.getPivot().beginVisition( new AdHocChannelUpdater( 0 ) ); + myGrid.getPivot().beginVisit( new AdHocChannelUpdater( 0 ) ); } else { @@ -126,7 +126,7 @@ public class PathGridCache implements IPathingGrid closedList = new HashSet(); semiOpen = new HashSet(); - // myGrid.getPivot().beginVisition( new AdHocChannelUpdater( 0 ) + // myGrid.getPivot().beginVisit( new AdHocChannelUpdater( 0 ) // ); for (IGridNode node : myGrid.getMachines( TileController.class )) { @@ -168,7 +168,7 @@ public class PathGridCache implements IPathingGrid { for (TileController tc : controllers) { - tc.getGridNode( ForgeDirection.UNKNOWN ).beginVisition( new ControllerChannelUpdater() ); + tc.getGridNode( ForgeDirection.UNKNOWN ).beginVisit( new ControllerChannelUpdater() ); break; } } @@ -332,7 +332,7 @@ public class PathGridCache implements IPathingGrid DimensionalCoord dc = startingNode.getGridBlock().getLocation(); ControllerValidator cv = new ControllerValidator( dc.x, dc.y, dc.z ); - startingNode.beginVisition( cv ); + startingNode.beginVisit( cv ); if ( cv.isValid && cv.found == controllers.size() ) controllerState = ControllerState.CONTROLLER_ONLINE;