From bcf7c9be60de73c3a1733339333d8e1c02e52df2 Mon Sep 17 00:00:00 2001 From: Quinn Date: Sun, 13 Jul 2025 12:05:27 +0200 Subject: [PATCH] improve coordinate conversion documentation, since our division was incorrect. --- docs/mc-data-spec.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/docs/mc-data-spec.md b/docs/mc-data-spec.md index fbdd728..ff14117 100644 --- a/docs/mc-data-spec.md +++ b/docs/mc-data-spec.md @@ -39,13 +39,8 @@ Where \*.mca files are the newer variant. ### coordinate conversions ```c -// block->chunk: -return (x / 16) - sgn(x); -return (x >> 4) - (x & 0x80000000); - -// chunk->region: -return (x / 32) - sgn(x); -return (x >> 5) - (x & 0x80000000); +return (x >> 4); // block->chunk +return (x >> 5); // chunk->region ```