This commit is contained in:
Jesse Boyd 2019-11-14 16:01:38 +00:00
parent b1244c7780
commit 8812e1b60c
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -253,11 +253,11 @@ public class HistoryCommands {
for (; i < finalTimes; ++i) {
undone = undoSession.undo(undoSession.getBlockBag(player), player);
if (undone == null) break;
worldEdit.flushBlockBag(player, undone);
}
if (undone == null) i--;
if (i > 0) {
BBC.COMMAND_UNDO_SUCCESS.send(player, i == 1 ? "" : " x" + i);
worldEdit.flushBlockBag(player, undone);
}
if (undone == null) {
player.printError(BBC.COMMAND_UNDO_ERROR.s());