701702703704705706707708709710711
} catch (BlockBagException e) { // Ran out of space } } blockBag.flushChanges(); } } } /**
608609610611612613614615616617618
*/ public void flushBlockBag(Actor actor, EditSession editSession) { BlockBag blockBag = editSession.getBlockBag(); if (blockBag != null) { blockBag.flushChanges(); } Map<Integer, Integer> missingBlocks = editSession.popMissingBlocks(); if (!missingBlocks.isEmpty()) {
188189190191192193194195196197198
brush.build(editSession, target, material, size); } catch (MaxChangedBlocksException e) { player.printError("Max blocks change limit reached."); } finally { if (bag != null) { bag.flushChanges(); } session.remember(editSession); } return true;
5455565758596061626364
try { editSession.setBlock(clicked.toVector(), targetBlock); } catch (MaxChangedBlocksException ignored) { } finally { if (bag != null) { bag.flushChanges(); } session.remember(editSession); } return true;