diff options
Diffstat (limited to 'azalea/examples')
| -rw-r--r-- | azalea/examples/testbot/commands/debug.rs | 5 |
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( |
