Comment out the code to format player list
authorGreg Burri <greg.burri@gmail.com>
Wed, 23 Jun 2021 10:41:14 +0000 (12:41 +0200)
committerGreg Burri <greg.burri@gmail.com>
Wed, 23 Jun 2021 10:41:14 +0000 (12:41 +0200)
backend/src/minecraft_controller.rs

index d9a68c0..f04ed24 100644 (file)
@@ -35,13 +35,11 @@ impl MinecraftExe {
     }\r
 \r
     pub fn format_active_players(&self) -> String {\r
-        /* Commented because the player list isn't correct (the number is).\r
         if self.active_players.len() == 0 {\r
             String::from("<none>")\r
         } else {\r
             self.active_players.join(", ")\r
-        }*/\r
-        self.active_players.len().to_string()\r
+        }\r
     }\r
 \r
     pub fn format_last_backup(&self) -> String {\r