diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2022-04-20 01:33:55 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-20 01:33:55 +0000 |
| commit | d09762f5d38ab1200fb08ca3b1178813b4e47081 (patch) | |
| tree | 2a5349db5fdbd80ef362dfefa8303ffbd901b916 /azalea-protocol/src/packets/status/clientbound_status_response_packet.rs | |
| parent | 747bfa568cb1da8afdeb29005bdd2836963ed613 (diff) | |
| parent | bc22faf3b0ba6cc8cc8de6276ff998690ba87bab (diff) | |
| download | azalea-drasl-d09762f5d38ab1200fb08ca3b1178813b4e47081.tar.xz | |
Merge pull request #2 from mat-1/state-packets-macro
State packets macro
Diffstat (limited to 'azalea-protocol/src/packets/status/clientbound_status_response_packet.rs')
| -rw-r--r-- | azalea-protocol/src/packets/status/clientbound_status_response_packet.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-protocol/src/packets/status/clientbound_status_response_packet.rs b/azalea-protocol/src/packets/status/clientbound_status_response_packet.rs index 58f5b701..884cf408 100644 --- a/azalea-protocol/src/packets/status/clientbound_status_response_packet.rs +++ b/azalea-protocol/src/packets/status/clientbound_status_response_packet.rs @@ -36,7 +36,7 @@ pub struct ClientboundStatusResponsePacket { impl ClientboundStatusResponsePacket { pub fn get(self) -> StatusPacket { - StatusPacket::ClientboundStatusResponsePacket(Box::new(self)) + StatusPacket::ClientboundStatusResponsePacket(self) } pub fn write(&self, _buf: &mut Vec<u8>) -> Result<(), std::io::Error> { |
