mojira.dev
MC-166434

Player can break block in spawn protection they last hit before being deopped

The bug

When an op player hits (=left click once) a block in the spawn protection and is afterwards de-opped, they can still break that block.

How to reproduce

  1. Start a server

  2. Op any player other than yourself (from the console) to activate spawn protection

    /op Notch
  3. Op yourself (from the console)

    /op @p
  4. Set your gamemode to survival

    /gamemode survival @p
  5. Click a block in spawn protection once

  6. De-op yourself

    /deop @p
  7. Try breaking the block you hit in the previous step
    ❌ You can successfully break it

Linked issues

Attachments

Comments 5

Can confirm in 21w14a.

Can confirm in 1.18.1. Please note that this isn't a desync of any kind. I've provided a video of this occurring for visual demonstration purposes.

[media]

Can confirm in 1.18.2.

Can confirm in 1.19.

Affects 1.21.3. Also would like to request ownership of this report to maintain it

Marcono1234

sof

(Unassigned)

Confirmed

(Unassigned)

spawn-protection

1.15 Pre-Release 2, 1.16.4, 21w14a, 1.18.1, 1.18.2, 1.19, 1.21.3, 1.21.4

Retrieved