Also check .mca filesize when loading a chunk
This commit is contained in:
parent
6995298796
commit
96959550c6
|
@ -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")) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue