mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
fix block inventory unbinding
This commit is contained in:
parent
24d198b236
commit
6f6c2a916a
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue