9
0
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:
Dreeam
2025-05-03 07:50:33 -04:00
parent 3f20ea5c71
commit 1431eff510
4 changed files with 13 additions and 12 deletions

View File

@@ -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;

View File

@@ -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();
}