feather-rs / feather

A Minecraft server implementation in Rust
Apache License 2.0
2.58k stars 143 forks source link

Update client window when changing creative windows. #479

Closed Tracreed closed 2 years ago

Tracreed commented 2 years ago

Update client window when changing creative windows.

Status

Description

Adds a call to client.send_window_items() whenever the server sets a creative inventory slot. Had to get access to server to get client. So the unit tests had to be removed as there is no sane way of passing server in unit tests.

Related issues

Closes #475

Leave empty if none

Checklist

Note: if you locally don't get any errors, but GitHub Actions fails (especially at clippy) you might want to check your rust toolchain version. You can then feel free to fix these warnings/errors in your PR.