mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-17 06:15:47 +01:00
fix: not moving chunks correctly in mcx_delchunk_range
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user