From bcfd0fe0c9a9b0250501c85e4a241f55d8012106 Mon Sep 17 00:00:00 2001 From: Greg Burri Date: Sun, 27 Jun 2021 11:22:57 +0200 Subject: [PATCH] Last character of the last nick was cut --- backend/src/minecraft_controller.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/minecraft_controller.rs b/backend/src/minecraft_controller.rs index 9287cda..8b06f66 100644 --- a/backend/src/minecraft_controller.rs +++ b/backend/src/minecraft_controller.rs @@ -89,7 +89,7 @@ fn get_status_from_rcon(rcon_password: &str) -> StatusFromRcon { Ok(resp) => match resp.body.find(':') { Some(i) if i < resp.body.len() -1 => - resp.body[i + 1..resp.body.len() - 1] + resp.body[i + 1..resp.body.len()] .split(',') .map(|nick| nick.trim().to_string()) .filter(|nick| !nick.is_empty()) -- 2.45.2