mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-12 04:38:35 +00:00
Add tracing for unflushed EditSessions
This commit is contained in:
@ -73,6 +73,10 @@ public class ChunkBatchingExtent extends AbstractDelegateExtent {
|
||||
this.enabled = enabled;
|
||||
}
|
||||
|
||||
public boolean commitRequired() {
|
||||
return batches.size() > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean setBlock(Vector location, BlockStateHolder block) throws WorldEditException {
|
||||
if (!enabled) {
|
||||
|
@ -94,6 +94,10 @@ public class MultiStageReorder extends AbstractDelegateExtent implements Reorder
|
||||
this.enabled = enabled;
|
||||
}
|
||||
|
||||
public boolean commitRequired() {
|
||||
return stage1.size() > 0 || stage2.size() > 0 || stage3.size() > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean setBlock(Vector location, BlockStateHolder block) throws WorldEditException {
|
||||
BlockState existing = getBlock(location);
|
||||
|
Reference in New Issue
Block a user