Possibly fixed item dropping with undo/redo.

This commit is contained in:
sk89q 2011-03-12 16:42:50 -08:00
parent 1b670a1c98
commit baca76e8b6

View File

@ -116,6 +116,7 @@ public EditSession undo(BlockBag newBlockBag) {
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 EditSession redo(BlockBag newBlockBag) {
EditSession editSession = history.get(historyPointer);
EditSession newEditSession =
new EditSession(editSession.getWorld(), -1, newBlockBag);
newEditSession.enableQueue();
editSession.redo(newEditSession);
historyPointer++;
return editSession;