X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2Fchunk.cpp;h=452e7aa3b3cf23345c7cb1e7f085e3c5d16572c5;hb=9da6ac5e93d79e79658a95d5f6efe42146873583;hp=7ef09c7a465d7f21d2051895af1954c7b62cf342;hpb=9240fdf2e68ee014da0d0a89a7fb2f29ebf28e2d;p=blank.git diff --git a/src/world/chunk.cpp b/src/world/chunk.cpp index 7ef09c7..452e7aa 100644 --- a/src/world/chunk.cpp +++ b/src/world/chunk.cpp @@ -1012,7 +1012,7 @@ Chunk::Pos ChunkStore::NextMissing() noexcept { void ChunkStore::Clean() { for (auto i = loaded.begin(), end = loaded.end(); i != end;) { - if (i->Referenced()) { + if (i->Referenced() || i->ShouldUpdateSave()) { ++i; } else { auto chunk = i;