Forgot to flush undo/redo

This commit is contained in:
Jesse Boyd 2017-02-13 15:08:57 +11:00
parent 8168c08ab6
commit 861ebad1ea
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -1225,6 +1225,7 @@ public class EditSession extends AbstractWorld implements HasFaweQueue, Lighting
ChangeSet changeSet = getChangeSet(); ChangeSet changeSet = getChangeSet();
editSession.getQueue().setChangeTask(null); editSession.getQueue().setChangeTask(null);
Operations.completeBlindly(ChangeSetExecutor.create(changeSet, context, ChangeSetExecutor.Type.UNDO, editSession.getBlockBag(), editSession.getLimit().INVENTORY_MODE)); Operations.completeBlindly(ChangeSetExecutor.create(changeSet, context, ChangeSetExecutor.Type.UNDO, editSession.getBlockBag(), editSession.getLimit().INVENTORY_MODE));
flushQueue();
editSession.changes = 1; editSession.changes = 1;
} }
@ -1239,6 +1240,7 @@ public class EditSession extends AbstractWorld implements HasFaweQueue, Lighting
ChangeSet changeSet = getChangeSet(); ChangeSet changeSet = getChangeSet();
editSession.getQueue().setChangeTask(null); editSession.getQueue().setChangeTask(null);
Operations.completeBlindly(ChangeSetExecutor.create(changeSet, context, ChangeSetExecutor.Type.REDO, editSession.getBlockBag(), editSession.getLimit().INVENTORY_MODE)); Operations.completeBlindly(ChangeSetExecutor.create(changeSet, context, ChangeSetExecutor.Type.REDO, editSession.getBlockBag(), editSession.getLimit().INVENTORY_MODE));
flushQueue();
editSession.changes = 1; editSession.changes = 1;
} }