aboutsummaryrefslogtreecommitdiff
path: root/azalea/examples
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2024-02-22 22:41:54 -0600
committermat <git@matdoes.dev>2024-02-22 22:41:54 -0600
commit038807e607c55757b3d9a9d51f0b9e65a781772b (patch)
treef162c7397e7ff17f2c7cb1f3fde7178dea60b645 /azalea/examples
parent69f7eebcb300bbefdc8b10c191a09db250bde630 (diff)
downloadazalea-drasl-038807e607c55757b3d9a9d51f0b9e65a781772b.tar.xz
fix for hypixel limbo
Diffstat (limited to 'azalea/examples')
-rw-r--r--azalea/examples/testbot/commands.rs1
-rw-r--r--azalea/examples/testbot/main.rs6
2 files changed, 3 insertions, 4 deletions
diff --git a/azalea/examples/testbot/commands.rs b/azalea/examples/testbot/commands.rs
index db606aa6..9cdb3cb7 100644
--- a/azalea/examples/testbot/commands.rs
+++ b/azalea/examples/testbot/commands.rs
@@ -4,7 +4,6 @@ pub mod movement;
use azalea::brigadier::prelude::*;
use azalea::chat::ChatPacket;
-use azalea::ecs::prelude::Entity;
use azalea::ecs::prelude::*;
use azalea::entity::metadata::Player;
use azalea::Client;
diff --git a/azalea/examples/testbot/main.rs b/azalea/examples/testbot/main.rs
index c3bc93f7..43e6b179 100644
--- a/azalea/examples/testbot/main.rs
+++ b/azalea/examples/testbot/main.rs
@@ -15,7 +15,7 @@ mod commands;
pub mod killaura;
use azalea::pathfinder::PathfinderDebugParticles;
-use azalea::{Account, ClientInformation};
+use azalea::ClientInformation;
use azalea::brigadier::command_dispatcher::CommandDispatcher;
use azalea::ecs::prelude::*;
@@ -136,7 +136,7 @@ async fn handle(bot: Client, event: azalea::Event, state: State) -> anyhow::Resu
let command = if chat.is_whisper() {
Some(content)
} else {
- content.strip_prefix("!").map(|s| s.to_owned())
+ content.strip_prefix('!').map(|s| s.to_owned())
};
if let Some(command) = command {
match state.commands.execute(
@@ -163,7 +163,7 @@ async fn handle(bot: Client, event: azalea::Event, state: State) -> anyhow::Resu
azalea::Event::Tick => {
killaura::tick(bot.clone(), state.clone())?;
- let task = state.task.lock().clone();
+ let task = *state.task.lock();
match task {
BotTask::None => {}
}