mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-18 09:35:50 +00:00
Fix online/max players being reversed on minecraft legacy 1.6
This commit is contained in:
parent
b09fa4ada5
commit
8c98433da9
2 changed files with 4 additions and 3 deletions
|
|
@ -55,9 +55,9 @@ impl LegacyV1_6 {
|
|||
.map_err(|_| GDError::PacketBad("Failed to parse to expected int.".to_string()))?;
|
||||
let version_name = split[1].to_string();
|
||||
let description = split[2].to_string();
|
||||
let max_players = split[3].parse()
|
||||
let online_players = split[3].parse()
|
||||
.map_err(|_| GDError::PacketBad("Failed to parse to expected int.".to_string()))?;
|
||||
let online_players = split[4].parse()
|
||||
let max_players = split[4].parse()
|
||||
.map_err(|_| GDError::PacketBad("Failed to parse to expected int.".to_string()))?;
|
||||
|
||||
Ok(Response {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue