diff options
Diffstat (limited to 'azalea-client/src/plugins')
| -rw-r--r-- | azalea-client/src/plugins/movement.rs | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/azalea-client/src/plugins/movement.rs b/azalea-client/src/plugins/movement.rs index adbaa01d..587bc05b 100644 --- a/azalea-client/src/plugins/movement.rs +++ b/azalea-client/src/plugins/movement.rs @@ -1,5 +1,3 @@ -use std::{backtrace::Backtrace, io}; - use azalea_core::{ game_type::GameMode, position::{Vec2, Vec3}, @@ -32,10 +30,9 @@ use azalea_protocol::{ }, }; use azalea_registry::EntityKind; -use azalea_world::{Instance, MinecraftEntityId, MoveEntityError}; +use azalea_world::{Instance, MinecraftEntityId}; use bevy_app::{App, Plugin, Update}; use bevy_ecs::prelude::*; -use thiserror::Error; use crate::{ client::Client, @@ -43,24 +40,6 @@ use crate::{ packet::game::SendGamePacketEvent, }; -#[derive(Error, Debug)] -pub enum MovePlayerError { - #[error("Player is not in world")] - PlayerNotInWorld(Backtrace), - #[error("{0}")] - Io(#[from] io::Error), -} - -impl From<MoveEntityError> for MovePlayerError { - fn from(err: MoveEntityError) -> Self { - match err { - MoveEntityError::EntityDoesNotExist(backtrace) => { - MovePlayerError::PlayerNotInWorld(backtrace) - } - } - } -} - pub struct MovementPlugin; impl Plugin for MovementPlugin { |
