1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-03-16 11:26:11 +00:00

Format Rust code using rustfmt

This commit is contained in:
github-actions[bot] 2022-01-06 07:51:23 +00:00 committed by GitHub
parent 050792a01c
commit 35a80f83c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,10 +72,17 @@ pub unsafe fn get_param_int(
) -> Option<i32> {
if param_type == hash40("common") {
if param_hash == hash40("dead_rebirth_wait_frame") {
let jostle_frame = WorkModule::get_int(module_accessor, *FIGHTER_INSTANCE_WORK_ID_INT_HIT_STOP_IGNORE_JOSTLE_FRAME);
let jostle_frame = WorkModule::get_int(
module_accessor,
*FIGHTER_INSTANCE_WORK_ID_INT_HIT_STOP_IGNORE_JOSTLE_FRAME,
);
if jostle_frame > 1 {
// Allow jostle to stop being ignored before we respawn
WorkModule::set_int(module_accessor, 1, *FIGHTER_INSTANCE_WORK_ID_INT_HIT_STOP_IGNORE_JOSTLE_FRAME);
WorkModule::set_int(
module_accessor,
1,
*FIGHTER_INSTANCE_WORK_ID_INT_HIT_STOP_IGNORE_JOSTLE_FRAME,
);
}
return Some(1);
}