Change slot command

This commit is contained in:
ErrorNoInternet
2023-01-17 22:36:16 +08:00
parent c302b2e80a
commit b8b077a813

View File

@@ -412,8 +412,8 @@ pub async fn process_command(
client
.write_packet(ServerboundGamePacket::SetCarriedItem(
game::serverbound_set_carried_item_packet::ServerboundSetCarriedItemPacket {
slot: match segments[0].parse() {
Ok(number) => number,
slot: match segments[0].parse::<i8>() {
Ok(number) => (number-1) as u16,
Err(error) => return format!("Unable to parse slot: {}", error),
},
},