Server projects post launch fixes (#5481)
* Vendor async-minecraft-ping and fix servers returning protocol version -1 * Don't have automod reject server projects * fmt * Add region to search facets * remove AMP .github
This commit is contained in:
@@ -973,8 +973,8 @@ async fn _get_server_status_new(
|
||||
};
|
||||
|
||||
let players = ServerPlayers {
|
||||
max: status.players.max.cast_signed(),
|
||||
online: status.players.online.cast_signed(),
|
||||
max: status.players.max,
|
||||
online: status.players.online,
|
||||
sample: status
|
||||
.players
|
||||
.sample
|
||||
|
||||
@@ -43,7 +43,7 @@ pub struct ServerGameProfile {
|
||||
#[derive(Deserialize, Serialize, Debug, Clone)]
|
||||
pub struct ServerVersion {
|
||||
pub name: String,
|
||||
pub protocol: u32,
|
||||
pub protocol: i32,
|
||||
#[serde(skip_deserializing)]
|
||||
pub legacy: bool,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user