Flush or disable buffers in tools

This commit is contained in:
Kenzie Togami
2018-10-20 18:54:58 -07:00
parent dd2fcbac23
commit 1fa1ff895b
10 changed files with 44 additions and 18 deletions

View File

@ -193,10 +193,11 @@ public class BrushTool implements TraceTool {
} catch (MaxChangedBlocksException e) {
player.printError("Max blocks change limit reached.");
} finally {
session.remember(editSession);
editSession.flushSession();
if (bag != null) {
bag.flushChanges();
}
session.remember(editSession);
}
return true;