From de790a846fb47ebd83780b9a1daf709199f49a52 Mon Sep 17 00:00:00 2001 From: suprohub Date: Mon, 28 Oct 2024 21:06:44 +0400 Subject: [PATCH] clippy fix 2 --- .../src/client/play/c_update_time.rs | 18 ------------------ pumpkin-protocol/src/client/play/mod.rs | 1 - pumpkin/src/commands/cmd_time.rs | 4 ---- pumpkin/src/commands/mod.rs | 1 - 4 files changed, 24 deletions(-) delete mode 100644 pumpkin-protocol/src/client/play/c_update_time.rs delete mode 100644 pumpkin/src/commands/cmd_time.rs diff --git a/pumpkin-protocol/src/client/play/c_update_time.rs b/pumpkin-protocol/src/client/play/c_update_time.rs deleted file mode 100644 index ce5819c7..00000000 --- a/pumpkin-protocol/src/client/play/c_update_time.rs +++ /dev/null @@ -1,18 +0,0 @@ -use pumpkin_macros::client_packet; -use serde::Serialize; - -#[derive(Serialize)] -#[client_packet("play:set_time")] -pub struct CUpdateTime { - world_age: u64, - time_of_day: u64, -} - -impl CUpdateTime { - pub fn new(world_age: u64, time_of_day: u64) -> Self { - Self { - world_age, - time_of_day, - } - } -} diff --git a/pumpkin-protocol/src/client/play/mod.rs b/pumpkin-protocol/src/client/play/mod.rs index 96d8cc13..fd980bd4 100644 --- a/pumpkin-protocol/src/client/play/mod.rs +++ b/pumpkin-protocol/src/client/play/mod.rs @@ -52,7 +52,6 @@ mod c_update_entity_pos_rot; mod c_update_entity_rot; mod c_update_objectives; mod c_update_score; -mod c_update_time; mod c_worldevent; mod player_action; diff --git a/pumpkin/src/commands/cmd_time.rs b/pumpkin/src/commands/cmd_time.rs deleted file mode 100644 index 4d0f397f..00000000 --- a/pumpkin/src/commands/cmd_time.rs +++ /dev/null @@ -1,4 +0,0 @@ -const NAMES: [&str; 1] = ["stop"]; -const DESCRIPTION: &str = "Stop the server."; - -struct TimeExecutor {} diff --git a/pumpkin/src/commands/mod.rs b/pumpkin/src/commands/mod.rs index 155aff6e..e3b8c418 100644 --- a/pumpkin/src/commands/mod.rs +++ b/pumpkin/src/commands/mod.rs @@ -20,7 +20,6 @@ mod cmd_kick; mod cmd_kill; mod cmd_pumpkin; mod cmd_stop; -mod cmd_time; mod cmd_worldborder; pub mod dispatcher;