3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-10 05:20:04 +01:00

Possibly fixed item dropping with undo/redo.

Dieser Commit ist enthalten in:
sk89q 2011-03-12 16:42:50 -08:00
Ursprung 1b670a1c98
Commit baca76e8b6

Datei anzeigen

@ -116,6 +116,7 @@ public class LocalSession {
EditSession editSession = history.get(historyPointer); EditSession editSession = history.get(historyPointer);
EditSession newEditSession = EditSession newEditSession =
new EditSession(editSession.getWorld(), -1, newBlockBag); new EditSession(editSession.getWorld(), -1, newBlockBag);
newEditSession.enableQueue();
editSession.undo(newEditSession); editSession.undo(newEditSession);
return editSession; return editSession;
} else { } else {
@ -135,6 +136,7 @@ public class LocalSession {
EditSession editSession = history.get(historyPointer); EditSession editSession = history.get(historyPointer);
EditSession newEditSession = EditSession newEditSession =
new EditSession(editSession.getWorld(), -1, newBlockBag); new EditSession(editSession.getWorld(), -1, newBlockBag);
newEditSession.enableQueue();
editSession.redo(newEditSession); editSession.redo(newEditSession);
historyPointer++; historyPointer++;
return editSession; return editSession;