Increase the block reach of a player and then attempting to open an inventory (chest, barrel, etc) from far away results in the screen showing for a split second before automatically closing
What I expected to happen was...:
The inventory should remain open.
What actually happened was...:
The inventory closes.
Steps to Reproduce:
1. Increase the block reach of the player with /attribute
2. Place a chest outside of the normal reach distance
3. Try to open it
Linked issues
is duplicated by 2
Comments 4
Relates to MC-229680
Additionally, a similar issue exists if you are riding a sufficiently scaled up horse or camel and try to open your inventory.
A command like
/attribute @e[type=camel,limit=1,sort=nearest] minecraft:generic.scale base set 5
should work.
I'm not creating an issue for this because it seems relatively similar.
This is the "close inventory when player moves too far away" part of the code, it doesn't take the attribute into account.