Commit Diff


commit - 390befe9cf0a9a1780b225c07ce0960bf22da01a
commit + 7a81625cd44bc65356b3e5889682eeee31f90cf8
blob - bc8c6598232abc9ab4e4a2d7c30b0713b9e7e684
blob + 8d5625ac5b1b7cc6a68f65bfcbbee4bead07dce9
--- src/main.c
+++ src/main.c
@@ -585,6 +585,9 @@ int main () {
         if (block_changes[i].block == B_chest) i += 14;
         if (i >= block_changes_count) block_changes_count = i + 1;
       }
+      // Update data on disk
+      writeBlockChangesToDisk(0, block_changes_count);
+      writePlayerDataToDisk();
       // Kick the client
       disconnectClient(&clients[client_index], 7);
       continue;