Fix compile
This commit is contained in:
parent
9002a9a78f
commit
d3ddd9ea6a
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue