Fixed typo

This commit is contained in:
Joshua Barretto 2019-09-26 14:03:41 +01:00
parent 81dc77c87b
commit bdf74cf151
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ pub enum BlockKind {
}
impl BlockKind {
pub fn is_tangeable(&self) -> bool {
pub fn is_tangible(&self) -> bool {
match self {
BlockKind::Air => false,
kind => !kind.is_fluid(),

View File

@ -123,7 +123,7 @@ impl PlayState for SessionState {
let terrain = client.state().terrain();
let ray = terrain
.ray(cam_pos, cam_pos + cam_dir * 100.0)
.until(|block| block.is_tangeable())
.until(|block| block.is_tangible())
.cast();
let dist = ray.0;
if let Ok(Some(_)) = ray.1 {