Changed //count, //fill, //fillr to use visitors.

This commit is contained in:
sk89q
2014-03-26 23:10:47 -07:00
committed by TomyLobo
parent 2562a2f577
commit dbb7b085f0
2 changed files with 47 additions and 233 deletions

View File

@ -91,7 +91,7 @@ public class UtilityCommands {
Pattern pattern = we.getBlockPattern(player, args.getString(0));
double radius = Math.max(1, args.getDouble(1));
we.checkMaxRadius(radius);
int depth = args.argsLength() > 2 ? Math.max(1, args.getInteger(2)) : 1;
int depth = args.argsLength() > 2 ? Math.max(1, args.getInteger(2)) : Integer.MAX_VALUE;
Vector pos = session.getPlacementPosition(player);
int affected = 0;