mojira.dev
MC-206845

Spyglass overlay remains when dying with keepInventory set to true

The bug

When dying while using a spyglass and /gamerule keepInventory is set to true, the spyglass overlay remains.

How to reproduce

  1. Set /gamerule keepInventory to true

  2. Obtain a creeper spawn egg, as well as a spyglass

  3. Enter survival mode: /gamemode survival

  4. Use the creeper spawn egg at the block beneath your feet (so that the creeper spawns at the block you are standing on), and then switch to the spyglass and expand it

  5. Die (if you don't die, repeat those steps)
    ❌ Notice how the death screen keeps the spyglass overlay

Screenshot

[media]

Attachments

Comments 10

Was this on a server? Might relate to MC-205236

Nope, just a singleplayer world! I haven't tested it on a server yet though.

Can confirm in 21w05a.

Can confirm in 21w08b. Video attached.

Can confirm in 21w13a.

Can confirm in 21w16a.

Can confirm in 21w17a.

Can confirm in 1.17.

Can confirm in 1.17.1.

Can confirm in 1.21.6

[Mod] markderickson

(Unassigned)

Confirmed

Platform

Low

Items

spyglass

20w48a, 20w49a, 20w51a, 21w03a, 21w05b, ..., 1.20, 1.20.1, 23w51b, 25w05a, 1.21.6

Retrieved