diff options
| author | mat <git@matdoes.dev> | 2025-10-30 19:50:37 +0100 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-10-30 19:50:37 +0100 |
| commit | 7d0c7553fd5a0210285a51a65c10f898f641a0cc (patch) | |
| tree | 2bfc5747c55622082761f7d6e3cabf86ed8ae2e4 /azalea-client/src | |
| parent | 03a496fc7d952b1136cb717f2e8d1ccfb798ee64 (diff) | |
| download | azalea-drasl-7d0c7553fd5a0210285a51a65c10f898f641a0cc.tar.xz | |
Remove unnecessary MoveEntityError and MovePlayerError types and other cleanup
Diffstat (limited to 'azalea-client/src')
| -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 { |
