1
0
Fork 0
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:
asimon-1 2022-06-07 21:54:26 -04:00 committed by GitHub
parent e4248c2857
commit 5e1f523bb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()
}
}