This commit is contained in:
Leijurv 2018-08-21 13:10:00 -07:00
parent 7623b8b386
commit 05cc63f4ff
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -159,6 +159,9 @@ public final class CachedRegion implements ICachedChunkAccess {
) {
int magic = in.readInt();
if (magic != CACHED_REGION_MAGIC) {
// in the future, if we change the format on disk
// we can keep converters for the old format
// by switching on the magic value, and either loading it normally, or loading through a converter.
throw new IOException("Bad magic value " + magic);
}
for (int z = 0; z < 32; z++) {