diff options
| author | mat <github@matdoes.dev> | 2022-01-03 00:14:41 -0600 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-01-03 00:14:41 -0600 |
| commit | 96eba2b39a596dd19c29a93aaa3b5bb9b700ba62 (patch) | |
| tree | 9a585864e81fd01da15bdc9ca5e4e3e7a69eb1f4 /azalea-protocol/src/packets/game/clientbound_change_difficulty_packet.rs | |
| parent | 394f996df27bedc68be6c1f9e9764e8f78ba6282 (diff) | |
| download | azalea-drasl-96eba2b39a596dd19c29a93aaa3b5bb9b700ba62.tar.xz | |
difficulty packet
Diffstat (limited to 'azalea-protocol/src/packets/game/clientbound_change_difficulty_packet.rs')
| -rw-r--r-- | azalea-protocol/src/packets/game/clientbound_change_difficulty_packet.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/game/clientbound_change_difficulty_packet.rs b/azalea-protocol/src/packets/game/clientbound_change_difficulty_packet.rs new file mode 100644 index 00000000..e12cfff3 --- /dev/null +++ b/azalea-protocol/src/packets/game/clientbound_change_difficulty_packet.rs @@ -0,0 +1,8 @@ +use azalea_core::difficulty::Difficulty; +use packet_macros::GamePacket; + +#[derive(Clone, Debug, GamePacket)] +pub struct ClientboundChangeDifficultyPacket { + pub difficulty: Difficulty, + pub locked: bool, +} |
