From 8812e1b60c4183ebf39e53b7b38279b33bf39355 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 14 Nov 2019 16:01:38 +0000 Subject: [PATCH] Fixes #231 --- .../main/java/com/sk89q/worldedit/command/HistoryCommands.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/HistoryCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/HistoryCommands.java index 263ddcd6e..9772b1de4 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/HistoryCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/HistoryCommands.java @@ -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());