diff options
Diffstat (limited to 'src/client.rs')
-rw-r--r-- | src/client.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client.rs b/src/client.rs index b36bba9..bac597e 100644 --- a/src/client.rs +++ b/src/client.rs @@ -1,5 +1,6 @@ use crate::client::network::*; use crate::protocol::*; +use crate::shared::imperative::*; use crate::shared::*; use bevy::input::mouse::MouseButton; use bevy::prelude::*; @@ -75,7 +76,7 @@ fn buffer_input( if let Some(world_position) = camera.viewport_to_world_2d(camera_transform, cursor_position) { - client.add_input(Inputs::Teleport(world_position)); + client.add_input(Inputs::Imperative(Imperative::WalkTo(world_position))); } } } |