mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix: invalid block segment was not removed on hover
This commit is contained in:
parent
26dcac0134
commit
f485ba5e54
1 changed files with 1 additions and 1 deletions
|
|
@ -391,7 +391,7 @@ voxel* PlayerController::updateSelection(float maxDistance) {
|
|||
selection.position = chunks->seekOrigin(
|
||||
iend, indices->blocks.get(selection.vox.id), selectedState
|
||||
);
|
||||
auto origin = chunks->get(iend);
|
||||
auto origin = chunks->get(selection.position);
|
||||
if (origin && origin->id != vox->id) {
|
||||
chunks->set(iend.x, iend.y, iend.z, 0, {});
|
||||
return updateSelection(maxDistance);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue