pmmp / PocketMine-MP

A server software for Minecraft: Bedrock Edition in PHP
https://pmmp.io
GNU Lesser General Public License v3.0
3.23k stars 1.51k forks source link

Container windows aren't closed by the server when the player is too far away #6349

Open dktapps opened 1 month ago

dktapps commented 1 month ago

Description

If the player opens an inventory window and moves away from the container (e.g. by water currents), they will still be able to interact with the container inventory from any distance as long as they don't do certain actions (e.g. breaking blocks).

We should probably have a distance check to close the window when the player goes too far away. However I don't know what the appropriate distance would be.

Alternative methods

CoderJoeW commented 3 days ago

Vanilla seems to be 12 blocks away is when I got kicked out of the container window