From 2e00110d5dd02644a0436ce987c3afbfafdeacaf Mon Sep 17 00:00:00 2001 From: Edvin Bryntesson Date: Wed, 21 Aug 2024 19:28:27 +0200 Subject: [PATCH] remove debug thing --- pumpkin/src/commands/cmd_chest.rs | 14 -------------- pumpkin/src/commands/mod.rs | 2 -- 2 files changed, 16 deletions(-) delete mode 100644 pumpkin/src/commands/cmd_chest.rs diff --git a/pumpkin/src/commands/cmd_chest.rs b/pumpkin/src/commands/cmd_chest.rs deleted file mode 100644 index 0e7957932..000000000 --- a/pumpkin/src/commands/cmd_chest.rs +++ /dev/null @@ -1,14 +0,0 @@ -use pumpkin_inventory::WindowType; - -use crate::commands::tree::CommandTree; - -pub(crate) const NAME: &str = "chest"; - -const DESCRIPTION: &str = "Open a chest containing lots of diamond blocks"; - -pub(crate) fn init_command_tree<'a>() -> CommandTree<'a> { - CommandTree::new(DESCRIPTION).execute(&|sender, _| { - sender.as_mut_player().unwrap().open_container(WindowType::Generic3x3,"minecraft:generic_9x3",None); - Ok(()) - }) -} diff --git a/pumpkin/src/commands/mod.rs b/pumpkin/src/commands/mod.rs index c1b2d9f6c..c977bb0f9 100644 --- a/pumpkin/src/commands/mod.rs +++ b/pumpkin/src/commands/mod.rs @@ -12,7 +12,6 @@ mod cmd_stop; mod dispatcher; mod tree; mod tree_builder; -mod cmd_chest; pub enum CommandSender<'a> { Rcon(&'a mut Vec), @@ -78,7 +77,6 @@ fn dispatcher_init<'a>() -> CommandDispatcher<'a> { map.insert(cmd_stop::NAME, cmd_stop::init_command_tree()); map.insert(cmd_help::NAME, cmd_help::init_command_tree()); map.insert(cmd_help::ALIAS, cmd_help::init_command_tree()); - map.insert(cmd_chest::NAME,cmd_chest::init_command_tree()); CommandDispatcher { commands: map } }