pick 97420a31d The big reformat of 2020

This commit is contained in:
yueh
2020-06-16 21:41:28 +02:00
parent 5304b3febe
commit 5225ea426b
2252 changed files with 95466 additions and 118582 deletions
+14 -20
View File
@@ -18,30 +18,24 @@
package appeng.me;
import appeng.api.networking.IGridNode;
import appeng.api.networking.IGridVisitor;
public class GridPropagator implements IGridVisitor {
private final Grid g;
public class GridPropagator implements IGridVisitor
{
private final Grid g;
public GridPropagator(final Grid g) {
this.g = g;
}
public GridPropagator( final Grid g )
{
this.g = g;
}
@Override
public boolean visitNode(final IGridNode n) {
final GridNode gn = (GridNode) n;
if (gn.getMyGrid() != this.g || this.g.getPivot() == n) {
gn.setGrid(this.g);
@Override
public boolean visitNode( final IGridNode n )
{
final GridNode gn = (GridNode) n;
if( gn.getMyGrid() != this.g || this.g.getPivot() == n )
{
gn.setGrid( this.g );
return true;
}
return false;
}
return true;
}
return false;
}
}