Skip to content

Implement swap item in hand#491

Merged
Defman merged 4 commits into
feather-rs:mainfrom
qualterz:swap-item-in-hand
Sep 27, 2021
Merged

Implement swap item in hand#491
Defman merged 4 commits into
feather-rs:mainfrom
qualterz:swap-item-in-hand

Conversation

@qualterz

@qualterz qualterz commented Sep 26, 2021

Copy link
Copy Markdown
Contributor

Implement swap item in hand

Status

  • Ready
  • Development
  • Hold

Description

Implements handling of SwapItemInHand status.

Checklist

  • Ran cargo fmt, cargo clippy --all-targets, cargo build --release and cargo test and fixed any generated errors!
  • Removed unnecessary commented out code
  • Used specific traces (if you trace actions please specify the cause i.e. the player)

@Defman

Defman commented Sep 26, 2021

Copy link
Copy Markdown
Member

Use std::mem::swap instead of cloning both itemstacks.

Comment thread feather/server/src/packet_handlers/interaction.rs Outdated
@Defman Defman merged commit 567262c into feather-rs:main Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants