1
0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2026-02-07 18:02:26 +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

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