Improved representation of Block for better performance, more features, and better backwards-compatibility

This commit is contained in:
Joshua Barretto
2020-09-20 10:09:29 +01:00
parent b2f42a117c
commit ece4a01867
25 changed files with 622 additions and 771 deletions

View File

@ -434,7 +434,7 @@ where
V: BaseVol<Vox = Block> + ReadVol,
{
vol.get(pos - Vec3::new(0, 0, 1))
.map(|b| b.is_solid() && b.get_height() == 1.0)
.map(|b| b.is_solid() && b.solid_height() == 1.0)
.unwrap_or(false)
&& vol
.get(pos + Vec3::new(0, 0, 0))