forked from mirror/BlueMap
Add filesize check before reading .mca files
This commit is contained in:
parent
8585c9637f
commit
a5f756d017
@ -283,6 +283,7 @@ public Collection<Vector2i> getChunkList(long modifiedSinceMillis, Predicate<Vec
|
|||||||
|
|
||||||
for (File file : getRegionFolder().toFile().listFiles()) {
|
for (File file : getRegionFolder().toFile().listFiles()) {
|
||||||
if (!file.getName().endsWith(".mca")) continue;
|
if (!file.getName().endsWith(".mca")) continue;
|
||||||
|
if (file.length() <= 0) continue;
|
||||||
|
|
||||||
try (RandomAccessFile raf = new RandomAccessFile(file, "r")) {
|
try (RandomAccessFile raf = new RandomAccessFile(file, "r")) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user