diff options
Diffstat (limited to 'azalea-protocol/src/packets/game/c_set_time.rs')
| -rw-r--r-- | azalea-protocol/src/packets/game/c_set_time.rs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/azalea-protocol/src/packets/game/c_set_time.rs b/azalea-protocol/src/packets/game/c_set_time.rs index ff795e87..efc95e0d 100644 --- a/azalea-protocol/src/packets/game/c_set_time.rs +++ b/azalea-protocol/src/packets/game/c_set_time.rs @@ -1,9 +1,18 @@ use azalea_buf::AzBuf; use azalea_protocol_macros::ClientboundGamePacket; +use azalea_registry::data::WorldClock; +use indexmap::IndexMap; #[derive(AzBuf, ClientboundGamePacket, Clone, Debug, PartialEq)] pub struct ClientboundSetTime { pub game_time: u64, - pub day_time: u64, - pub tick_day_time: bool, + pub clock_updates: IndexMap<WorldClock, ClockState>, +} + +#[derive(AzBuf, Clone, Debug, PartialEq)] +pub struct ClockState { + #[var] + pub total_ticks: u64, + pub partial_tick: f32, + pub rate: f32, } |
