From 153b5b45e42a031e9ee7dd2764840b07ce1cb47b Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 30 Apr 2022 02:10:21 -0500 Subject: misc fixes --- azalea-protocol/src/packets/game/clientbound_declare_commands_packet.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'azalea-protocol/src/packets') 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 McBufWritable for BrigadierNumber { 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)?; } -- cgit v1.2.3