Add join time sorter

This commit is contained in:
ErrorNoInternet
2023-01-13 18:40:30 +08:00
parent abb4e93f0d
commit ca3b20704a
2 changed files with 24 additions and 5 deletions

View File

@@ -129,14 +129,14 @@ async fn main() {
}
}
#[derive(Eq, Hash, PartialEq, PartialOrd, Debug, Clone)]
#[derive(Eq, Hash, PartialEq, PartialOrd, Default, Debug, Clone)]
pub struct Player {
uuid: String,
entity_id: u32,
username: String,
}
#[derive(Eq, Hash, PartialEq, PartialOrd, Debug, Clone)]
#[derive(Eq, Hash, PartialEq, PartialOrd, Default, Debug, Clone)]
pub struct Entity {
id: u32,
uuid: String,
@@ -149,7 +149,7 @@ pub struct PositionTimeData {
time: u64,
}
#[derive(Default, Debug, Clone)]
#[derive(Eq, Hash, PartialEq, PartialOrd, Default, Debug, Clone)]
pub struct PlayerTimeData {
join_time: u64,
chat_message_time: u64,