aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-04-30 02:10:21 -0500
committermat <github@matdoes.dev>2022-04-30 02:10:21 -0500
commit153b5b45e42a031e9ee7dd2764840b07ce1cb47b (patch)
treeb8673fbad5ceb31d7bfa29a364415ca8804e2a91 /azalea-protocol/src/packets
parentc37fcfe4da7a55208bf8241c7a776905513d5e0e (diff)
downloadazalea-drasl-153b5b45e42a031e9ee7dd2764840b07ce1cb47b.tar.xz
misc fixes
Diffstat (limited to 'azalea-protocol/src/packets')
-rwxr-xr-xazalea-protocol/src/packets/game/clientbound_declare_commands_packet.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-protocol/src/packets/game/clientbound_declare_commands_packet.rs b/azalea-protocol/src/packets/game/clientbound_declare_commands_packet.rs
index 33b710d5..afaa7fdd 100755
--- a/azalea-protocol/src/packets/game/clientbound_declare_commands_packet.rs
+++ b/azalea-protocol/src/packets/game/clientbound_declare_commands_packet.rs
@@ -76,7 +76,7 @@ impl<T: McBufWritable> McBufWritable for BrigadierNumber<T> {
if self.max.is_some() {
flags |= 0x02;
}
- buf.write_i8(flags);
+ buf.write_byte(flags)?;
if let Some(min) = &self.min {
min.write_into(buf)?;
}