9
0
mirror of https://github.com/BX-Team/DivineMC.git synced 2025-12-22 08:19:19 +00:00
This commit is contained in:
NONPLAYT
2025-07-20 15:58:41 +03:00
parent ea6672f6f6
commit 1f51fdd5bf
84 changed files with 150 additions and 317 deletions

View File

@@ -66,9 +66,10 @@ public class DivineBootstrap {
SharedConstants.tryDetectVersion();
getStartupVersionMessages().forEach(LOGGER::info);
} catch (Throwable t) {
t.printStackTrace();
LOGGER.error("Failed to initialize the server", t);
}
}
return options;
}

View File

@@ -37,6 +37,7 @@ import java.util.Set;
* <p>For conversion tools between MCA and buffered region file formats, see:
* <a href="https://github.com/NONPLAYT/LinearRegionFileFormatTools">LinearRegionFileFormatTools</a>
*/
@SuppressWarnings({"unused", "FieldMayBeFinal"})
public class BufferedRegionFile implements IRegionFile {
private static final double AUTO_COMPACT_PERCENT = 3.0 / 5.0; // 60%
private static final long AUTO_COMPACT_SIZE = 1024 * 1024; // 1 MiB
@@ -751,7 +752,7 @@ public class BufferedRegionFile implements IRegionFile {
}
}
private class Sector{
private class Sector {
private final int index;
private long offset;
private long length;