mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-07-01 17:04:49 +02:00
Treat not existent region files as empty (not generated) chunks. Fixes #57
This commit is contained in:
parent
71c165fe53
commit
6e123e1c3f
|
@ -253,6 +253,8 @@ private Chunk loadChunk(Vector2i chunkPos) throws IOException {
|
||||||
} else {
|
} else {
|
||||||
throw new IOException("invalid data tag: " + (tag == null ? "null" : tag.getClass().getName()));
|
throw new IOException("invalid data tag: " + (tag == null ? "null" : tag.getClass().getName()));
|
||||||
}
|
}
|
||||||
|
} catch (FileNotFoundException ex) {
|
||||||
|
return Chunk.empty(this, chunkPos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user