From b334b8e39f010b0eaff52f9e6a2dbeec105ce4dc Mon Sep 17 00:00:00 2001 From: T1ti <40864460+T1ti@users.noreply.github.com> Date: Thu, 25 Apr 2024 23:41:32 +0200 Subject: [PATCH] fix saving chunk coords. oof --- src/noggit/MapChunk.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/noggit/MapChunk.cpp b/src/noggit/MapChunk.cpp index 63a25bda..b7ff1f3d 100755 --- a/src/noggit/MapChunk.cpp +++ b/src/noggit/MapChunk.cpp @@ -1433,8 +1433,8 @@ void MapChunk::save(sExtendableArray& lADTFile lMCNK_header->flags = header_flags.value; lMCNK_header->ix = px; lMCNK_header->iy = py; - lMCNK_header->zpos = zbase; - lMCNK_header->xpos = xbase; + lMCNK_header->zpos = zbase * -1.0f + ZEROPOINT; + lMCNK_header->xpos = xbase * -1.0f + ZEROPOINT; lMCNK_header->ypos = ybase; lMCNK_header->holes = holes;