From baca76e8b643f899e27f2f7b53ae230aedad0aa4 Mon Sep 17 00:00:00 2001 From: sk89q Date: Sat, 12 Mar 2011 16:42:50 -0800 Subject: [PATCH] Possibly fixed item dropping with undo/redo. --- src/com/sk89q/worldedit/LocalSession.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/sk89q/worldedit/LocalSession.java b/src/com/sk89q/worldedit/LocalSession.java index 034416713..fffbbf5d0 100644 --- a/src/com/sk89q/worldedit/LocalSession.java +++ b/src/com/sk89q/worldedit/LocalSession.java @@ -116,6 +116,7 @@ public class LocalSession { EditSession editSession = history.get(historyPointer); EditSession newEditSession = new EditSession(editSession.getWorld(), -1, newBlockBag); + newEditSession.enableQueue(); editSession.undo(newEditSession); return editSession; } else { @@ -135,6 +136,7 @@ public class LocalSession { EditSession editSession = history.get(historyPointer); EditSession newEditSession = new EditSession(editSession.getWorld(), -1, newBlockBag); + newEditSession.enableQueue(); editSession.redo(newEditSession); historyPointer++; return editSession;