fix block inventory unbinding

This commit is contained in:
MihailRis 2024-11-19 11:46:04 +03:00
parent 24d198b236
commit 6f6c2a916a

View File

@ -386,7 +386,7 @@ void Chunks::set(
// block finalization
voxel& vox = chunk->voxels[(y * CHUNK_D + lz) * CHUNK_W + lx];
const auto& prevdef = indices->blocks.require(vox.id);
if (prevdef.inventorySize == 0) {
if (prevdef.inventorySize != 0) {
chunk->removeBlockInventory(lx, y, lz);
}
if (prevdef.rt.extended && !vox.state.segment) {