mojira.dev
MC-9194

A Comparator can lock a Repeater, but the Repeater doesn't look like it is locked

Update

As of the 1.13 snapshots, the repeater will appear locked until the other side is updated. See the newly attached screenshot – the repeater appeared locked until the packed ice was placed. Removing the ice leaves the repeater visually unlocked.

The bug

When powering a repeater from the side by a comparator it can lock the repeater (similar to repeater locking with repeaters). But it doesn't show the texture of a locked repeater.

The problem is actually with the comparator, not the repeater. Until you toggle the comparator, it won't recognize that it is supposed to be locking the repeater. If you place a comparator, then toggle it, then place the repeater, it will already appear locked. The comparator also has to be powered for the toggle to work.

Code analysis

Based on 1.11.2 decompiled using MCP 9.35 rc1

The problem is that the power level of a comparator is determined by the comparator tile entity client side as well, but this tile entity is not updated unless the player right clicks the comparator.
This can cause the opposite of the bug described here as well when the tile entity was updated and stores client side a power level, but the power source was removed afterwards. Replacing it then with the powered=true state (without actually powering it) causes it to display the repeater as locked while it is not actually locked server-side.

Linked issues

MC-9311 Comparator don't block repeaters Resolved MC-9677 Repeaters locked by comparators dont show bedrock bar Resolved MC-12542 Repeater locking with comparators Resolved MC-17492 Redstone Repeater Texture Does not Update Correctly Resolved MC-19598 Repeater Locking Problems Resolved

Attachments

Comments 18

Confirmed.

I think it was intended because they said they wanted only repeaters to be able to lock other repeaters. So it might actually work as intended. Maybe they weren't supposed to be blocked that's why the lock texture doesn't show, or it should lock it and the texture doesn't show. Anyway, it's up to Dinnerbone to decide.

I think it was meant to happen but it was meant to show there locked state witch it doesn't.

Kwin van der Veen

I just noticed something, if you right click the comparator while being powered (so it would toggle between compare and subtract mode) then the repeater does show that it is locked. Tested this in snapshot 13w06a. However if I reload the world/chunk will reset this and no block update seems the trigger this as well.

its about time this gets fixed seeing them have know about it for so long. how are you meant to make problem solving maps when people cant see the problem that needs to be solved! turns a problem solving map into a lucky guess map!

8 more comments

Still in snapshot 15w50a

Still in 16w03a

Is this still an issue on the latest snapshot 16w44a?

Confirmed for 17w17b

Reopening because the lock is visually removed when the other side of the repeater is updated. See new screenshot taken in 17w50a.

Kwin van der Veen

Erik Broes

Confirmed

redstone, redstone_comparator, redstone_repeater

Snapshot 13w05a, Snapshot 13w05b, Snapshot 13w06a, Snapshot 13w10a, Snapshot 13w10b, ..., Minecraft 17w43a, Minecraft 17w43b, Minecraft 17w45a, Minecraft 17w46a, Minecraft 17w50a

Minecraft 17w47a, Minecraft 18w01a

Retrieved