mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-29 03:49:21 +00:00
[ci skip] cleanup
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
package org.dreeam.leaf.util.map;
|
||||
|
||||
import it.unimi.dsi.fastutil.longs.*;
|
||||
import it.unimi.dsi.fastutil.longs.LongCollection;
|
||||
import it.unimi.dsi.fastutil.longs.LongIterator;
|
||||
import it.unimi.dsi.fastutil.longs.LongOpenHashSet;
|
||||
import it.unimi.dsi.fastutil.longs.LongSet;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
@@ -147,7 +147,7 @@ public class LinearRegionFile implements IRegionFile {
|
||||
|
||||
private synchronized void save() throws IOException {
|
||||
if (MinecraftServer.getServer().hasStopped()) {
|
||||
// Crazy - save only once on shutdown
|
||||
// Save only once on shutdown
|
||||
if (!closed) return;
|
||||
}
|
||||
|
||||
@@ -224,7 +224,6 @@ public class LinearRegionFile implements IRegionFile {
|
||||
LOGGER.error("Chunk write IOException {} {}", e, this.path);
|
||||
}
|
||||
|
||||
// Crazy: bruh
|
||||
if (TimeUnit.NANOSECONDS.toSeconds(System.nanoTime() - this.lastFlushed) >= (RegionFormatConfig.linearFlushFrequency)) {
|
||||
this.flushWrapper();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user