mojira.dev
MC-206705

Spyglasses stay in use in spectator mode

The bug

The spyglass stays in use when switching to spectator while using F3 + N.

How to reproduce

  1. Obtain a spyglass

  2. While using the spyglass, switch to spectator mode using F3 + N

Observed behavior

The spyglass remains extended while in spectator mode.

Expected behavior

The spyglass would retract while in spectator mode.

Video

https://youtu.be/dMpPDX8YQvE

Code analysis

Code analysis by @unknown can be found in this comment.

Linked issues

Attachments

Comments 17

Can confirm in 21w11a.

Can confirm in 21w13a.

Can confirm in 21w15a.

Can confirm in 21w16a.

7 more comments

Can confirm in 1.18.2.

Can confirm in 1.19.

Can confirm in 1.19.2.

Following on from my code analysis, I've double-checked my proposed fix and I can confidently confirm that it's fully functioning and works as expected, so I've attached two screenshots to this report, one of which shows the current code and the other that shows the fixed code. I feel this information may be quite insightful hence my reasoning for providing it. 🙂

[media][media]

Can confirm in 23w46a.

_FallenTurtle_

(Unassigned)

Confirmed

Platform

Low

Player

game-mode-switch, spectator, spyglass

20w48a, 20w49a, 20w51a, 21w03a, 21w05a, ..., 1.19.4, 23w14a, 1.20.1, 1.20.4, 1.21

Retrieved