mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-28 21:56:33 +01:00
Flush regardless of changeset
This commit is contained in:
parent
52c460a32c
commit
4044e8772d
@ -439,11 +439,11 @@ public class LocalSession {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void remember(final EditSession editSession, final boolean append, final boolean sendMessage, int limitMb) {
|
public void remember(final EditSession editSession, final boolean append, final boolean sendMessage, int limitMb) {
|
||||||
|
// It should have already been flushed, but just in case!
|
||||||
|
editSession.flushQueue();
|
||||||
if (editSession == null || editSession.getChangeSet() == null || limitMb == 0 || ((historySize >> 20) > limitMb && !append)) {
|
if (editSession == null || editSession.getChangeSet() == null || limitMb == 0 || ((historySize >> 20) > limitMb && !append)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// It should have already been flushed, but just in case!
|
|
||||||
editSession.flushQueue();
|
|
||||||
// Don't store anything if no changes were made
|
// Don't store anything if no changes were made
|
||||||
if (editSession.size() == 0 || editSession.hasFastMode()) {
|
if (editSession.size() == 0 || editSession.hasFastMode()) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user