Add decimal points
This commit is contained in:
parent
affac858b7
commit
d4fb8be963
@ -196,7 +196,7 @@ pub async fn process_command(
|
|||||||
let bot_status = state.bot_status.lock().unwrap().to_owned();
|
let bot_status = state.bot_status.lock().unwrap().to_owned();
|
||||||
let metadata = client.metadata();
|
let metadata = client.metadata();
|
||||||
return format!(
|
return format!(
|
||||||
"Health: {:.1}/20, Food: {}/20, Saturation: {:.1}/20, Score: {}, Air Supply: {}",
|
"Health: {:.1}/20.0, Food: {}/20, Saturation: {:.1}/20.0, Score: {}, Air Supply: {}",
|
||||||
bot_status.health,
|
bot_status.health,
|
||||||
bot_status.food,
|
bot_status.food,
|
||||||
bot_status.saturation,
|
bot_status.saturation,
|
||||||
|
@ -569,7 +569,7 @@ async fn handle(mut client: Client, event: Event, state: Arc<State>) -> anyhow::
|
|||||||
"msg {} {}",
|
"msg {} {}",
|
||||||
player,
|
player,
|
||||||
format!(
|
format!(
|
||||||
"Health: {:.1}/20, Food: {}/20, Saturation: {:.1}/20",
|
"Health: {:.1}/20.0, Food: {}/20, Saturation: {:.1}/20.0",
|
||||||
packet.health, packet.food, packet.saturation
|
packet.health, packet.food, packet.saturation
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user