Also check .mca filesize when loading a chunk

This commit is contained in:
Blue (Lukas Rieger) 2020-08-26 17:33:45 +02:00
parent 6995298796
commit 96959550c6
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ public class MCAWorld implements World {
Path regionPath = getMCAFilePath(regionPos);
File regionFile = regionPath.toFile();
if (!regionFile.exists()) return Chunk.empty(this, chunkPos);
if (!regionFile.exists() || regionFile.length() <= 0) return Chunk.empty(this, chunkPos);
try (RandomAccessFile raf = new RandomAccessFile(regionFile, "r")) {