1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 14:26:04 +00:00

fix log feature in test_simulation

This commit is contained in:
mat 2025-02-21 19:05:01 +00:00
parent b664e04a7d
commit 541325289b

View file

@ -18,9 +18,7 @@ use azalea_registry::DimensionType;
use azalea_world::palette::{PalettedContainer, PalettedContainerKind};
use azalea_world::{Chunk, Instance, MinecraftEntityId, Section};
use bevy_app::App;
use bevy_app::PluginGroup;
use bevy_ecs::{prelude::*, schedule::ExecutorKind};
use bevy_log::LogPlugin;
use parking_lot::{Mutex, RwLock};
use simdnbt::owned::Nbt;
use tokio::{sync::mpsc, time::sleep};
@ -170,7 +168,12 @@ fn create_local_player_bundle(
fn create_simulation_app() -> App {
let mut app = App::new();
app.add_plugins(crate::DefaultPlugins.build().disable::<LogPlugin>());
#[cfg(feature = "log")]
app.add_plugins(
bevy_app::PluginGroup::build(crate::DefaultPlugins).disable::<bevy_log::LogPlugin>(),
);
app.edit_schedule(bevy_app::Main, |schedule| {
// makes test results more reproducible
schedule.set_executor_kind(ExecutorKind::SingleThreaded);