Fixed //fill and //rotate

This commit is contained in:
Matthew Miller
2018-07-22 15:36:50 +10:00
parent 2239d14a01
commit 65420af09e
7 changed files with 65 additions and 29 deletions

View File

@ -104,12 +104,7 @@ public class UtilityCommands {
int depth = args.argsLength() > 2 ? Math.max(1, args.getInteger(2)) : 1;
Vector pos = session.getPlacementPosition(player);
int affected;
if (pattern instanceof BlockPattern) {
affected = editSession.fillXZ(pos, ((BlockPattern) pattern).getBlock(), radius, depth, false);
} else {
affected = editSession.fillXZ(pos, pattern, radius, depth, false);
}
int affected = editSession.fillXZ(pos, pattern, radius, depth, false);
player.print(affected + " block(s) have been created.");
}