The bug
When dying while using a spyglass and /gamerule keepInventory is set to true, the spyglass overlay remains.
How to reproduce
Set
/gamerule keepInventorytotrueObtain a creeper spawn egg, as well as a spyglass
Enter survival mode:
/gamemode survivalUse 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
Die (if you don't die, repeat those steps)
❌ Notice how the death screen keeps the spyglass overlay
Was this on a server? Might relate to MC-205236