Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-119417

A spectator can occupy a bed if they enter it and then are switched to spectator mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 1.12, Minecraft 17w31a, Minecraft 1.12.1 Pre-Release 1, Minecraft 1.12.1, Minecraft 1.12.2 Pre-Release 1, Minecraft 1.12.2 Pre-Release 2, Minecraft 1.12.2, Minecraft 17w43a, Minecraft 17w43b, Minecraft 17w45a, Minecraft 17w46a, Minecraft 17w48a, Minecraft 17w50a, Minecraft 18w01a, Minecraft 18w03b, Minecraft 18w06a, Minecraft 18w09a, Minecraft 18w10d, Minecraft 18w14b, Minecraft 1.13-pre1, Minecraft 1.13-pre3, Minecraft 1.13-pre6, Minecraft 1.13-pre8, Minecraft 1.13-pre10, Minecraft 1.13, Minecraft 18w30b, Minecraft 18w31a, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w45a, Minecraft 18w46a, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w02a, 1.14.4, 1.15 Pre-release 6, 20w46a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w07a, 21w08b, 21w11a, 21w16a, 1.17, 1.17.1, 1.18.1, 1.18.2, 1.19, 1.19.2, 1.21
    • Confirmed
    • Spectator
    • Player

      The bug

      A spectator can occupy a bed if they enter it and then are switched to spectator mode. Expected behavior would be that the spectator would get kicked out of bed and that another player would have been able to join the bed.

      How to reproduce

      1. Place a bed and go into it. This requires the player not to be in spectator mode
      2. /gamemode spectator
        → Notice you are still in a bed
      3. Ask another player to go into the bed you are occupying
        → Notice they can't because the bed is occupied

        1. MC-119417.mp4
          3.20 MB
          [Mod] Avoma
        2. MC-119417.png
          219 kB
          [Mod] Avoma
        3. MC-119417 - Current Code.png
          51 kB
          [Mod] Avoma
        4. MC-119417 - Fixed Code.png
          53 kB
          [Mod] Avoma

            Unassigned Unassigned
            Kroppeb Kroppeb
            Votes:
            14 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              CHK: