mirror of
https://github.com/italicsjenga/valence.git
synced 2024-12-23 14:31:30 +11:00
Fix clippy issue
This commit is contained in:
parent
a80052097a
commit
4920defe3e
|
@ -46,7 +46,7 @@ impl Decode for Slot {
|
|||
Ok(Slot::Present {
|
||||
item_id: VarInt::decode(r)?,
|
||||
item_count: u8::decode(r)?,
|
||||
nbt: if r.get(0) == Some(&0) {
|
||||
nbt: if r.first() == Some(&0) {
|
||||
r.read_u8()?;
|
||||
None
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue