mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix blocks raycast filter
This commit is contained in:
parent
e371153288
commit
ce769143f8
1 changed files with 1 additions and 2 deletions
|
|
@ -264,8 +264,7 @@ static inline voxel* raycast_blocks(
|
|||
}
|
||||
|
||||
const auto& def = blocks.require(voxel->id);
|
||||
if ((filter.empty() && def.selectable) ||
|
||||
(!filter.empty() && filter.find(def.rt.id) == filter.end())) {
|
||||
if (def.selectable && (filter.empty() || filter.find(def.rt.id) == filter.end())) {
|
||||
end.x = px + t * dx;
|
||||
end.y = py + t * dy;
|
||||
end.z = pz + t * dz;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue