mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2025-02-17 14:40:31 +00:00
Another bugfix for input_delay
This commit is contained in:
parent
fb6de31aa4
commit
92a3d5711d
1 changed files with 4 additions and 1 deletions
|
@ -1004,7 +1004,10 @@ macro_rules! set_by_str {
|
|||
const fn num_bits<T>() -> usize { std::mem::size_of::<T>() * 8 }
|
||||
|
||||
fn log_2(x: u32) -> u32 {
|
||||
num_bits::<u32>() as u32 - x.leading_zeros() - 1
|
||||
if x == 0 { 0 }
|
||||
else {
|
||||
num_bits::<u32>() as u32 - x.leading_zeros() - 1
|
||||
}
|
||||
}
|
||||
|
||||
impl TrainingModpackMenu {
|
||||
|
|
Loading…
Reference in a new issue