Enabled queue on EditSessions given to scripts.

This commit is contained in:
sk89q 2011-01-30 20:41:34 -08:00
parent d5173a8763
commit 888699cae0
2 changed files with 2 additions and 0 deletions

View File

@ -930,6 +930,7 @@ public class WorldEdit {
e.printStackTrace();
} finally {
for (EditSession editSession : scriptContext.getEditSessions()) {
editSession.flushQueue();
session.remember(editSession);
}
}

View File

@ -63,6 +63,7 @@ public class CraftScriptContext extends CraftScriptEnvironment {
EditSession editSession =
new EditSession(server, player.getWorld(),
session.getBlockChangeLimit(), session.getBlockBag(player));
editSession.enableQueue();
editSessions.add(editSession);
return editSession;
}