mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Remove spurious uses of Vox.
In the process, also try to address a few edge cases related to block detection, such as adding back previously solid sprites and removing filters that may be vestiges of earlier logic.
This commit is contained in:
@ -133,7 +133,7 @@ impl Route {
|
||||
// Only consider the node reached if there's nothing solid between us and it
|
||||
&& (vol
|
||||
.ray(pos + Vec3::unit_z() * 1.5, closest_tgt + Vec3::unit_z() * 1.5)
|
||||
.until(|block| block.is_solid())
|
||||
.until(Block::is_solid)
|
||||
.cast()
|
||||
.0
|
||||
> pos.distance(closest_tgt) * 0.9 || dist_sqrd < 0.5)
|
||||
|
Reference in New Issue
Block a user