mirror of
https://github.com/italicsjenga/valence.git
synced 2024-12-23 22:41:30 +11:00
e1a3e2dc00
<!-- Please make sure that your PR is aligned with the guidelines in CONTRIBUTING.md to the best of your ability. --> <!-- Good PRs have tests! Make sure you have sufficient test coverage. --> ## Description <!-- Describe the changes you've made. You may include any justification you want here. --> Added a quick and dirty bounds check because we haven't created drop item/itemstack event(s) yet. ## Test Plan <!-- Explain how you tested your changes, and include any code that you used to test this. --> <!-- If there is an example that is sufficient to use in place of a playground, replace the playground section with a note that indicates this. --> use the `building` example <!-- You need to include steps regardless of whether or not you are using a playground. --> Steps: 1. `cargo run --example building` 2. open inventory 3. pick an item 4. drop the item outside of the inventory window 5. see that the server does not panic #### Related <!-- Link to any issues that have context for this or that this PR fixes. --> fixes #233 |
||
---|---|---|
.. | ||
packet_inspector | ||
playground | ||
valence | ||
valence_anvil | ||
valence_nbt | ||
valence_protocol | ||
valence_protocol_macros | ||
valence_spatial_index |