aboutsummaryrefslogtreecommitdiff
path: root/azalea/examples
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2026-01-16 21:58:56 -0545
committermat <git@matdoes.dev>2026-01-16 21:58:56 -0545
commit02280dc6e2c559452f00eed9c5c23efa0d6cb5fe (patch)
tree3f6c5589640bc79abc6696486b3fa8734c4f6802 /azalea/examples
parent43b7d6aad17eaf2656fcb8edc2122edfd93f539f (diff)
downloadazalea-drasl-02280dc6e2c559452f00eed9c5c23efa0d6cb5fe.tar.xz
better pathfinder swimming and other tweaks
Diffstat (limited to 'azalea/examples')
-rw-r--r--azalea/examples/testbot/commands/debug.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/azalea/examples/testbot/commands/debug.rs b/azalea/examples/testbot/commands/debug.rs
index 57d9ff1f..4cde3335 100644
--- a/azalea/examples/testbot/commands/debug.rs
+++ b/azalea/examples/testbot/commands/debug.rs
@@ -6,6 +6,7 @@ use azalea::{
BlockPos,
brigadier::prelude::*,
chunks::ReceiveChunkEvent,
+ inventory,
packet::game,
pathfinder::{
ExecutingPath, Pathfinder, custom_state::CustomPathfinderStateRef, mining::MiningCache,
@@ -14,7 +15,7 @@ use azalea::{
};
use azalea_core::hit_result::HitResult;
use azalea_entity::{EntityKindComponent, metadata};
-use azalea_inventory::components::MaxStackSize;
+use azalea_inventory::{Menu, Player, components::MaxStackSize};
use azalea_world::Worlds;
use bevy_app::AppExit;
use bevy_ecs::{message::Messages, query::With, world::EntityRef};
@@ -200,7 +201,7 @@ pub fn register(commands: &mut CommandDispatcher<Mutex<CommandSource>>) {
let mut edges = Vec::new();
let cached_world = CachedWorld::new(source.bot.world(), position);
- let mining_cache = MiningCache::new(None);
+ let mining_cache = MiningCache::new(Some(Menu::Player(inventory::Player::default())));
let custom_state = CustomPathfinderStateRef::default();
azalea::pathfinder::moves::default_move(