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:
Joshua Yanovski
2020-09-26 15:55:01 +02:00
parent 98c8240879
commit 938039a56e
32 changed files with 385 additions and 326 deletions

View File

@ -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)