mojira.dev
MC-210301

Desync when trying to use a bucket in spawn protection

When trying to empty a bucket in spawn protection, client-side the action succeeds, but it fails server-side. However that is not communicated to the client, causing a desync.

To reproduce

Emptying

  1. Start a server

  2. Join the server

  3. Op any player other than you (from the console) to activate spawn protection

  4. Give yourself any bucket (water, lava, powder snow, fish, axolotl)

  5. Try to empty the bucket
    → ❌ Nothing happens but the bucket gets emptied

  6. Click on the bucket in your inventory
    → ❌ The bucket is full again

Picking up

  1. Start a server

  2. Join the server

  3. Op any player other than you (from the console) to activate spawn protection

  4. Give yourself an empty bucket

  5. Try to pick up water or lava
    → ❌ The block is removed and the bucket gets filled
    → ❌ The removed block does not update (similar to MC-12363)

  6. Click on the bucket in your inventory
    → ❌ The bucket is empty again

Related issues

Attachments

Comments

migrated
[media][media][media][media]
Avoma

Can confirm in 1.17.1.

Avoma

Can confirm in 1.18.1.

Avoma

Can confirm in 1.18.2.

Avoma

Can confirm in 1.19.

violine1101

(Unassigned)

Confirmed

Platform

Normal

Networking

spawn-protection

20w51a, 21w20a, 1.17.1, 1.18.1, 1.18.2, 1.19, 1.21, 1.21.4

Retrieved