From 7d0c7553fd5a0210285a51a65c10f898f641a0cc Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 30 Oct 2025 19:50:37 +0100 Subject: Remove unnecessary MoveEntityError and MovePlayerError types and other cleanup --- azalea-client/src/plugins/movement.rs | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'azalea-client/src/plugins') 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 for MovePlayerError { - fn from(err: MoveEntityError) -> Self { - match err { - MoveEntityError::EntityDoesNotExist(backtrace) => { - MovePlayerError::PlayerNotInWorld(backtrace) - } - } - } -} - pub struct MovementPlugin; impl Plugin for MovementPlugin { -- cgit v1.2.3