mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fixed typo
This commit is contained in:
parent
81dc77c87b
commit
bdf74cf151
@ -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(),
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user