mojira.dev
MC-307272

Servers can no longer detect left-click for players in Spectator mode

Short description of the issue:

From Minecraft 1.8, all the way until and including 1.11.10, it was possible for servers to detect when a spectator hit their left click button. This no longer happens as of 1.11.11 and 26.1(.1)

This breaks a lot of minigame servers and custom maps that utilize left clicking abilities while having players be in Spectator UI, such as “left click to continue” in cut scenes (like when floating above the map reading titles, detecting when the player has finished reading them), left click to move to next player or map, and so on.

This happens because ServerboundSwingPacket is no longer being sent when left clicking in Spectator mode as of 1.21.11 and 26.1(.1)

Given this has been in the game for 12 years, and in that time, been utilized heavily, I don’t see this being anything other than a unintended side-effect of a different change done to Minecraft, or a innocent change that was done without thinking of the larger consequences it would have. Both of which I would consider in the area of unintended behavior, so I am making a bug report in hopes to get it resolved! :)

If this was intentional, I would hope an actual replacement for it should be added, because removing it completely, limits are lot of creativity in minigames and maps, and as previously mentioned, breaks a lot of existing minigames and maps.

Steps to reproduce the issue

N/A

Expected result

Server receives a ServerboundSwingPacket when a connected client in Spectator mode left clicks.

Actual result

Server does not receive any packet or indication of a left click from a connected client in Spectator mode.

Comments 1

LeonTG

(Unassigned)

Unconfirmed

(Unassigned)

26.1.1

Retrieved