mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 15:01:49 +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
|
// block finalization
|
||||||
voxel& vox = chunk->voxels[(y * CHUNK_D + lz) * CHUNK_W + lx];
|
voxel& vox = chunk->voxels[(y * CHUNK_D + lz) * CHUNK_W + lx];
|
||||||
const auto& prevdef = indices->blocks.require(vox.id);
|
const auto& prevdef = indices->blocks.require(vox.id);
|
||||||
if (prevdef.inventorySize == 0) {
|
if (prevdef.inventorySize != 0) {
|
||||||
chunk->removeBlockInventory(lx, y, lz);
|
chunk->removeBlockInventory(lx, y, lz);
|
||||||
}
|
}
|
||||||
if (prevdef.rt.extended && !vox.state.segment) {
|
if (prevdef.rt.extended && !vox.state.segment) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue