mojira.dev
MC-156867

Observer observes daylight sensor twice

The bug

If a daylight sensor is placed in front of an observer it will output for the block placement and then another one randomly. Sometimes it is instant, other times is takes a second, and there are also times it doesn't do it at all. Just to make sure I set daylightcycle to false and it still does it.

Edit: the second pulse occurs from the daylight sensor updating on the 20th tick. However there is a chance that placing it at the right moment will cause the observer to give a single output as both the block placement and the update happen at the same time.

Attachments

Comments 6

The observer detects every block state change of the daylight detector. The block state of a daylight detector changes depending on the current time.

Well, having taken another look at this, the issue seems to be that the daylight detector doesn't update its blockstate immediately when it is placed. I'm not too sure whether that's intended. Reopened.

Can confirm in 20w51a.

Can confirm in 1.17.1.

Can confirm in 1.19.4 and 23w18a

cswertwertwert

(Unassigned)

Confirmed

(Unassigned)

Minecraft 1.14.3, 20w29a, 20w51a, 1.17.1, 22w18a, 1.19.4, 23w18a, 24w46a

Retrieved