From f4cd71a09bf36cce69086f066a0441728b95882c Mon Sep 17 00:00:00 2001 From: Andrew Chin Date: Tue, 1 Mar 2011 08:11:38 -0500 Subject: [PATCH] Fix region calc typo --- chunk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chunk.py b/chunk.py index d75baaf..8e6245e 100644 --- a/chunk.py +++ b/chunk.py @@ -151,7 +151,7 @@ def check_cache(world, chunkXY, oldimg): # TODO (which will cause a single chunk update to invalidate everything in the region if not oldimg[1]: return False - chunkfile = os.path.join(world.worlddir, "region", "r.%d.%d.mcr" % (chunkXY[0]//64, chunkXY[1]//64)) + chunkfile = os.path.join(world.worlddir, "region", "r.%d.%d.mcr" % (chunkXY[0]//32, chunkXY[1]//32)) with open(chunkfile, "rb") as f: region = nbt.MCRFileReader(f)