fix block changes not syncing on interval

This commit is contained in:
p2r3
2025-09-13 21:58:03 +03:00
parent bdb4e4b72c
commit 61eb38a83d
3 changed files with 19 additions and 15 deletions

View File

@@ -8,11 +8,13 @@
void writeBlockChangesToDisk (int from, int to);
void writeChestChangesToDisk (uint8_t *storage_ptr, uint8_t slot);
void writePlayerDataToDisk ();
void writeDataToDiskOnInterval ();
#else
// Define no-op placeholders for when disk syncing isn't enabled
#define writeBlockChangesToDisk(a, b)
#define writeChestChangesToDisk(a, b)
#define writePlayerDataToDisk()
#define writeDataToDiskOnInterval()
#define initSerializer() 0
#endif