]> git.localhorst.tv Git - blank.git/blobdiff - src/ui/ui.cpp
save and load chunk data
[blank.git] / src / ui / ui.cpp
index e53cff606291d12d4f4fde960a49af38fa169f01..0c89a2f3a554ab6c0347ed669bdd71d801dea22a 100644 (file)
@@ -410,7 +410,6 @@ void Interface::PlaceBlock() {
                next_pos -= aim_normal * glm::vec3(Chunk::Extent());
        }
        mod_chunk->SetBlock(next_pos, selection);
-       mod_chunk->Invalidate();
 
        if (config.audio_disabled) return;
        const Entity &player = ctrl.Controlled();
@@ -423,7 +422,6 @@ void Interface::PlaceBlock() {
 void Interface::RemoveBlock() noexcept {
        if (!aim_chunk) return;
        aim_chunk->SetBlock(aim_block, remove);
-       aim_chunk->Invalidate();
 
        if (config.audio_disabled) return;
        const Entity &player = ctrl.Controlled();