From f1141e0db4c926a9441fe7744ca33166e2a6b6bd Mon Sep 17 00:00:00 2001 From: Quinn Date: Thu, 28 Aug 2025 10:58:26 +0200 Subject: [PATCH] fix: not moving chunks correctly in `mcx_delchunk_range` --- src/dat/mcx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dat/mcx.c b/src/dat/mcx.c index de2eef6..24f76e9 100644 --- a/src/dat/mcx.c +++ b/src/dat/mcx.c @@ -69,7 +69,8 @@ size_t mcx_delchunk_range(u8 *restrict buf, int start, int end) { } // move the remaining chunks down - mvchunks(buf, src, dst, start, end); + if (end < 0x3FF) + mvchunks(buf, src, dst, end, 0x3FF); return src - dst; }