feat: add proper nix flake

This commit is contained in:
2026-04-13 16:48:38 -04:00
parent 9a362630a2
commit 7d1996306c
16 changed files with 296 additions and 155 deletions

View File

@@ -5,6 +5,7 @@ mod arguments;
mod build_info;
mod commands;
mod events;
mod hacks;
mod http;
mod lua;
mod particle;
@@ -27,7 +28,6 @@ use arguments::Arguments;
use azalea::{
DefaultPlugins, bot::DefaultBotPlugins, brigadier::prelude::CommandDispatcher, prelude::*,
};
use azalea_hax::HaxPlugin;
use bevy_app::PluginGroup;
use bevy_log::{
LogPlugin,
@@ -45,6 +45,8 @@ use {
replay::{plugin::RecordPlugin, recorder::Recorder},
};
use crate::hacks::HacksPlugin;
#[cfg(feature = "mimalloc")]
#[global_allocator]
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
@@ -114,7 +116,7 @@ async fn main() -> Result<()> {
let builder = ClientBuilder::new_without_plugins()
.add_plugins(default_plugins)
.add_plugins(DefaultBotPlugins)
.add_plugins(HaxPlugin);
.add_plugins(HacksPlugin);
#[cfg(feature = "replay")]
let builder = builder.add_plugins(RecordPlugin {