mojira.dev
MC-308747

The social interactions button in the game menu is grayed out in LAN worlds with no players

Description

The social interactions screen can be opened using the hotkey (default P) although the button to open it is still disabled.

Expected Behavior

Either the button should be enabled when no player can be reported and the world is in multiplayer mode or the keybind should fail when no player can be reported.

Actual Behavior

The keybind opens the social interactions screen although the button is still disabled when no players can be reported.

Environment

Kubuntu 26.04

Attachments

Comments 3

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

[media]

In 26.1.2, the button is actually enabled, so the behavior more likely to be unintended here is that the button is grayed out.

The button in the pause menu checks whether there are any reportable players before enabling itself, so it seems likely that the keybind isn't intended to work.

net.minecraft.client.gui.screens.PauseScreen

List<Entry<UUID, PlayerInfo>> list = this.minecraft
    .player
    .connection
    .getSeenPlayers()
    .entrySet()
    .stream()
    .filter(entry -> entry.getKey() != this.minecraft.player.getUUID())
    .toList();
if (list.isEmpty()) {
    playerReportingButton.active = false;
    playerReportingButton.setTooltip(NO_PLAYERS_TO_REPORT_TOOLTIP);
}

There currently isn’t any check in net.minecraft.client.gui.Gui#handleKeybinds, which would explain the inconsistent behavior.

while (options.keySocialInteractions.consumeClick()) {
			if (!this.minecraft.isMultiplayerServer() && !SharedConstants.DEBUG_SOCIAL_INTERACTIONS) {
				this.chatListener.handleOverlay(SOCIAL_INTERACTIONS_NOT_AVAILABLE);
				this.minecraft.getNarrator().saySystemNow(SOCIAL_INTERACTIONS_NOT_AVAILABLE);
			} else {
				if (this.socialInteractionsToast != null) {
					this.socialInteractionsToast.hide();
					this.socialInteractionsToast = null;
				}

				this.setScreen(new SocialInteractionsScreen());
			}
		}

MrKinau

FiskFille

Confirmed

Platform HC

Low

UI

26.2 Release Candidate 2

26.4 Snapshot 3

Retrieved