Fix compile

This commit is contained in:
Jesse Boyd 2018-09-08 02:07:47 +10:00
parent 9002a9a78f
commit d3ddd9ea6a
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
1 changed files with 22 additions and 21 deletions

View File

@ -233,8 +233,7 @@ public class HistoryCommands extends MethodCommands {
public void undo(Player player, LocalSession session, CommandContext context) throws WorldEditException { public void undo(Player player, LocalSession session, CommandContext context) throws WorldEditException {
int times = Math.max(1, context.getInteger(0, 1)); int times = Math.max(1, context.getInteger(0, 1));
if (times > 50) { if (times > 50) {
FawePlayer.wrap(player).checkConfirmation(getArguments(context), times, 50); FawePlayer.wrap(player).checkConfirmation(() -> {
}
for (int i = 0; i < times; ++i) { for (int i = 0; i < times; ++i) {
EditSession undone; EditSession undone;
if (context.argsLength() < 2) { if (context.argsLength() < 2) {
@ -256,6 +255,8 @@ public class HistoryCommands extends MethodCommands {
break; break;
} }
} }
}, getArguments(context), times, 50);
}
} }
@Command( @Command(