mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Improved representation of Block for better performance, more features, and better backwards-compatibility
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user