mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2025-03-16 11:26:11 +00:00
Fix input delay getting passed to url params incorrectly (#371)
This commit is contained in:
parent
e4248c2857
commit
5e1f523bb6
1 changed files with 3 additions and 1 deletions
|
@ -912,9 +912,11 @@ trait ToUrlParam {
|
|||
fn to_url_param(&self) -> String;
|
||||
}
|
||||
|
||||
// The i32 is now in log form, need to exponentiate
|
||||
// back into 2^X when we pass back to the menu
|
||||
impl ToUrlParam for i32 {
|
||||
fn to_url_param(&self) -> String {
|
||||
self.to_string()
|
||||
2_i32.pow(*self as u32).to_string()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue