mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-16 03:14:04 +00:00
Simplify commit-required detection
This commit is contained in:
@@ -37,11 +37,8 @@ public class TracedEditSession extends EditSession {
|
||||
@Override
|
||||
protected void finalize() throws Throwable {
|
||||
super.finalize();
|
||||
if (!isQueueEnabled() && !isBatchingChunks()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (getChunkBatchingExtent().commitRequired() || getReorderExtent().commitRequired()) {
|
||||
if (commitRequired()) {
|
||||
WorldEdit.logger.warning("####### LEFTOVER BUFFER BLOCKS DETECTED #######");
|
||||
WorldEdit.logger.warning("This means that some code did not flush their EditSession.");
|
||||
WorldEdit.logger.log(Level.WARNING, "Here is a stacktrace from the creation of this EditSession:", stacktrace);
|
||||
|
Reference in New Issue
Block a user