mojira.dev
MC-108726

Scheduled block updates are not removed when block is destroyed (example: buttons)

The bug

I placed a button on my wall, then i pressed it, when it was pressed, i destroyed it, and placed it again quick, then i clicked the new button (this works with both wooden and stone buttons):

It should just be pressed in, for i guess 2 seconds or about that. It was pressed in for 1 second or less, depending on how long time the first button i had was pressed.

How to reproduce

  1. Place a button on a block

  2. Press the button

  3. When the button is pressed, destroy the button

  4. Then quickly place a new button of the same type

  5. If you now click the button, it will have a smaller pulse, depending on how long time the last button were pressed, before destroying it

Linked issues

Attachments

Comments 5

Can confirm for 16w41a

It looks like the problem is that the update for a block is not removed when the block is broken, in this case unpowering the button again. This affects very likely other blocks as well. As far as I know one method of bedrock breaking abuses this as well.

Also practically affects coral dying, as described in MC-128743

Confirmed for 1.15-pre1.

Can confirm in 1.20.5.

Martin Mejer

(Unassigned)

Confirmed

Platform

Low

Block states

block-update, button, destroy

Minecraft 1.10.2, Minecraft 16w36a, Minecraft 16w41a, Minecraft 1.11.2, Minecraft 1.12.1, ..., 1.19.4, 23w18a, 1.20.1, 1.20.2, 1.20.5

Retrieved