mojira.dev
MC-312587

Game crashes when trying to render hidden tooltip of specific music disc in jukebox playlist

Steps to Reproduce

  1. Construct a valid jukebox playlist structure

  2. Take a default music disc from creative inventory

  3. Obtain a custom music disc via the command: /give @s music_disc_5[tooltip_display={hide_tooltip: true}]

  4. Put the default disc into the chest so it starts playing

  5. Put the custom disc into the chest so it’s the next disc to play

  6. Move the cursor to hover over the custom disc

Observed Result

The game crashes.

Reported exception thrown!
net.minecraft.ReportedException: Rendering screen
	at net.minecraft.client.Minecraft.runTick(Minecraft.java:1285)
	at net.minecraft.client.Minecraft.run(Minecraft.java:972)
	at net.minecraft.client.main.Main.main(Main.java:292)
Caused by: java.lang.UnsupportedOperationException
	at java.base/java.util.ImmutableCollections.uoe(ImmutableCollections.java:159)
	at java.base/java.util.ImmutableCollections$AbstractImmutableCollection.add(ImmutableCollections.java:164)
	at net.minecraft.client.gui.screens.inventory.JukeboxScreen.getTooltipFromContainerItem(JukeboxScreen.java:25)
	at net.minecraft.client.gui.screens.inventory.AbstractContainerScreen.extractTooltip(AbstractContainerScreen.java:199)
	at net.minecraft.client.gui.screens.inventory.AbstractContainerScreen.extractRenderState(AbstractContainerScreen.java:111)
	at net.minecraft.client.gui.screens.Screen.extractRenderStateWithTooltipAndSubtitles(Screen.java:123)
	at net.minecraft.client.gui.Gui.extractRenderState(Gui.java:182)
	at net.minecraft.client.renderer.GameRenderer.extract(GameRenderer.java:454)
	at net.minecraft.client.Minecraft.renderFrame(Minecraft.java:1373)
	at net.minecraft.client.Minecraft.runTick(Minecraft.java:1279)

Comments 0

No comments.

merak48763

(Unassigned)

Unconfirmed

26.4 Snapshot 4

Retrieved