From 05cc63f4ffc4d16d1024c8f7f4806f8679f6f929 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Tue, 21 Aug 2018 13:10:00 -0700 Subject: [PATCH] comment --- src/main/java/baritone/bot/chunk/CachedRegion.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/baritone/bot/chunk/CachedRegion.java b/src/main/java/baritone/bot/chunk/CachedRegion.java index cbdcc9ed..6fe78009 100644 --- a/src/main/java/baritone/bot/chunk/CachedRegion.java +++ b/src/main/java/baritone/bot/chunk/CachedRegion.java @@ -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++) {