feat(client): add AntiKnockback component from azalea-hax

This commit is contained in:
2025-03-13 20:47:45 -04:00
parent 5ec14d979d
commit 3400541a79
3 changed files with 34 additions and 22 deletions

View File

@@ -5,6 +5,7 @@ use azalea::{
pathfinder::PathfinderDebugParticles,
protocol::common::client_information::ModelCustomization,
};
use azalea_hax::AntiKnockback;
use log::error;
use mlua::{Error, Lua, Result, Table, UserDataRef};
@@ -80,6 +81,7 @@ pub fn set_component(
}
match name.as_str() {
"AntiKnockback" => set!(AntiKnockback),
"PathfinderDebugParticles" => set!(PathfinderDebugParticles),
_ => Err(Error::external("invalid component")),
}