From 63e26e3a5b141c56169d026621685f98e1132485 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Tue, 3 Sep 2024 15:48:10 +0200 Subject: [PATCH] unset data_modified once save command is issued --- kubi/src/world/loading.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/kubi/src/world/loading.rs b/kubi/src/world/loading.rs index 9a42f75..de3898d 100644 --- a/kubi/src/world/loading.rs +++ b/kubi/src/world/loading.rs @@ -295,6 +295,7 @@ fn process_state_changes( // Only save the chunk if it has been modified if chunk.data_modified { // log::debug!("issue save command"); + chunk.data_modified = false; io.send(IOCommand::SaveChunk { position, data: block_data.blocks.clone(),