Change slot command
This commit is contained in:
parent
c302b2e80a
commit
b8b077a813
@ -412,8 +412,8 @@ pub async fn process_command(
|
|||||||
client
|
client
|
||||||
.write_packet(ServerboundGamePacket::SetCarriedItem(
|
.write_packet(ServerboundGamePacket::SetCarriedItem(
|
||||||
game::serverbound_set_carried_item_packet::ServerboundSetCarriedItemPacket {
|
game::serverbound_set_carried_item_packet::ServerboundSetCarriedItemPacket {
|
||||||
slot: match segments[0].parse() {
|
slot: match segments[0].parse::<i8>() {
|
||||||
Ok(number) => number,
|
Ok(number) => (number-1) as u16,
|
||||||
Err(error) => return format!("Unable to parse slot: {}", error),
|
Err(error) => return format!("Unable to parse slot: {}", error),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user