mojira.dev
MC-306519

The /clear command informs about the removal of an item from two players even if only one player had the item

If one player has an item in his inventory and the other player's inventory is empty, then when executing the /clear @a command, “Removed 1 item(s) from 2 players” will be informed, even if only one player had an item in his inventory. How to reproduce:

Open your world to the local network and allow commands.

With the second account, go to the “Multiplayer” section and join your world.

Give yourself any item on any account, for example, a “Lava Chicken” music disc using the command: /give @s minecraft:music_disc_lava_chicken.

From the account to which you gave yourself the music disc, run the command: /clear @a

Please note that the chat said “Removed 1 item(s) from 2 players” even though only one player had the music disc in his inventory.

Linked issues

Attachments

Comments 1

Thank you for helping us improve Minecraft! We saved your files:

[media]

minecraft_982646

(Unassigned)

Unconfirmed

(Unassigned)

26.1 Snapshot 9

Retrieved