diff options
Diffstat (limited to 'azalea-protocol/src/packets/game/c_change_difficulty.rs')
| -rwxr-xr-x | azalea-protocol/src/packets/game/c_change_difficulty.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/game/c_change_difficulty.rs b/azalea-protocol/src/packets/game/c_change_difficulty.rs new file mode 100755 index 00000000..cdcc4792 --- /dev/null +++ b/azalea-protocol/src/packets/game/c_change_difficulty.rs @@ -0,0 +1,9 @@ +use azalea_buf::AzBuf; +use azalea_core::difficulty::Difficulty; +use azalea_protocol_macros::ClientboundGamePacket; + +#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)] +pub struct ClientboundChangeDifficulty { + pub difficulty: Difficulty, + pub locked: bool, +} |
