fix: user bits and manually set rotation not saving

This commit is contained in:
MihailRis
2024-05-31 11:26:16 +03:00
parent 6d933ac263
commit 86dd6562de
4 changed files with 18 additions and 10 deletions
+1 -3
View File
@@ -179,9 +179,7 @@ void Chunks::set(int32_t x, int32_t y, int32_t z, uint32_t id, blockstate state)
chunk->removeBlockInventory(lx, y, lz);
vox.id = id;
vox.state = state;
chunk->setUnsaved(true);
chunk->setModified(true);
chunk->setModifiedAndUnsaved();
if (y < chunk->bottom) chunk->bottom = y;
else if (y + 1 > chunk->top) chunk->top = y + 1;