9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-24 09:29:33 +00:00

Update RegionFile.java

This commit is contained in:
XiaoMoMi
2025-04-06 20:11:39 +08:00
parent db9480a650
commit 4c84ddb22e

View File

@@ -334,7 +334,7 @@ public class RegionFile implements AutoCloseable {
// If the chunk file is too large, store it as an additional file
if (sectorsToWrite >= EXTERNAL_CHUNK_THRESHOLD) {
Path path = this.getExternalChunkPath(pos);
LOGGER.warn(String.format("Saving oversized chunk %s (%s bytes) to external file %s", pos, sizeToWrite, path));
LOGGER.warn(String.format("Saving oversized chunk %s (%s bytes) to external file %s", pos.x() + "," + pos.z(), sizeToWrite, path));
sectorsToWrite = 1;
sectorStartPosition = this.usedSectors.allocate(sectorsToWrite);
regionFileOperation = this.writeToExternalFileSafely(path, buf);