Fixes #136
This commit is contained in:
parent
3c0a2bd67e
commit
c1b22fbb21
@ -287,17 +287,18 @@ public final class CommandManager {
|
|||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
final EditSession editSession = locals.get(EditSession.class);
|
final EditSession editSession = locals.get(EditSession.class);
|
||||||
boolean delayed = false;
|
boolean hasSession = false;
|
||||||
if (editSession != null) {
|
if (editSession != null) {
|
||||||
editSession.flushQueue();
|
editSession.flushQueue();
|
||||||
worldEdit.flushBlockBag(actor, editSession);
|
worldEdit.flushBlockBag(actor, editSession);
|
||||||
session.remember(editSession, true, true);
|
session.remember(editSession, true, true);
|
||||||
|
hasSession = editSession.size() > 0;
|
||||||
}
|
}
|
||||||
if (fp != null) {
|
if (fp != null) {
|
||||||
fp.deleteMeta("fawe_action");
|
fp.deleteMeta("fawe_action");
|
||||||
if (editSession != null) {
|
if (editSession != null) {
|
||||||
final long time = System.currentTimeMillis() - start;
|
final long time = System.currentTimeMillis() - start;
|
||||||
if (time > 0) {
|
if (time > 5 && hasSession) {
|
||||||
BBC.ACTION_COMPLETE.send(actor, (time / 1000d));
|
BBC.ACTION_COMPLETE.send(actor, (time / 1000d));
|
||||||
ChangeSet fcs = editSession.getChangeSet();
|
ChangeSet fcs = editSession.getChangeSet();
|
||||||
if (fcs != null && fcs instanceof FaweStreamChangeSet) {
|
if (fcs != null && fcs instanceof FaweStreamChangeSet) {
|
||||||
|
Loading…
Reference in New Issue
Block a user