Add filesize check before reading .mca files

This commit is contained in:
Blue (Lukas Rieger) 2020-08-26 14:39:07 +02:00
parent 8585c9637f
commit a5f756d017

View File

@ -283,6 +283,7 @@ public Collection<Vector2i> getChunkList(long modifiedSinceMillis, Predicate<Vec
for (File file : getRegionFolder().toFile().listFiles()) {
if (!file.getName().endsWith(".mca")) continue;
if (file.length() <= 0) continue;
try (RandomAccessFile raf = new RandomAccessFile(file, "r")) {