mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-01-22 15:10:05 +00:00
Possibly fixed item dropping with undo/redo.
This commit is contained in:
parent
1b670a1c98
commit
baca76e8b6
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user