[MC-9194] A Comparator can lock a Repeater, but the Repeater doesn't look like it is locked Created: 04/Feb/13  Updated: 13/Jan/18  Resolved: 16/Dec/17

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Snapshot 13w05a, Snapshot 13w05b, Snapshot 13w06a, Snapshot 13w10a, Snapshot 13w10b, Minecraft 1.5, Snapshot 13w11a, Minecraft 1.5.1, Minecraft 1.7.2, Minecraft 1.7.4, Minecraft 1.7.10, Minecraft 14w30c, Minecraft 14w32d, Minecraft 1.8, Minecraft 1.8.4, Minecraft 1.8.6, Minecraft 1.8.8, Minecraft 15w31c, Minecraft 15w32a, Minecraft 15w32b, Minecraft 15w37a, Minecraft 15w45a, Minecraft 15w47a, Minecraft 15w50a, Minecraft 16w03a, Minecraft 16w42a, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w13a, Minecraft 17w13b, Minecraft 17w14a, Minecraft 17w15a, Minecraft 17w16a, Minecraft 17w17b, Minecraft 17w18a, Minecraft 17w18b, Minecraft 1.12 Pre-Release 1, Minecraft 1.12 Pre-Release 2, Minecraft 1.12 Pre-Release 3, Minecraft 1.12 Pre-Release 4, Minecraft 1.12 Pre-Release 5, Minecraft 1.12 Pre-Release 6, Minecraft 1.12 Pre-Release 7, Minecraft 1.12, Minecraft 17w31a, Minecraft 1.12.1 Pre-Release 1, Minecraft 1.12.1, Minecraft 1.12.2 Pre-Release 1, Minecraft 1.12.2 Pre-Release 2, Minecraft 1.12.2, Minecraft 17w43a, Minecraft 17w43b, Minecraft 17w45a, Minecraft 17w46a, Minecraft 17w50a
Fix Version/s: Minecraft 17w47a, Minecraft 18w01a

Type: Bug
Reporter: Kwin van der Veen Assignee: [Mojang] Grum (Erik Broes)
Resolution: Fixed Votes: 35
Labels: redstone, redstone_comparator, redstone_repeater

Attachments: PNG File 2013-02-04_23.52.48.png     PNG File 2014-03-10_11.31.59.png     PNG File 2017-12-15_20.27.47.png    
Issue Links:
Duplicate
is duplicated by MC-9311 Comparator don't block repeaters Resolved
is duplicated by MC-9677 Repeaters locked by comparators dont ... Resolved
is duplicated by MC-12542 Repeater locking with comparators Resolved
is duplicated by MC-17492 Redstone Repeater Texture Does not Up... Resolved
is duplicated by MC-19598 Repeater Locking Problems Resolved
is duplicated by MC-19720 Comparator locks repeater Resolved
is duplicated by MC-24684 comparator to repeater locking Resolved
is duplicated by MC-61408 Graphical glitsh for Repeater Locking... Resolved
is duplicated by MC-72520 Repeater doesn't show "Lock" when loc... Resolved
is duplicated by MC-88759 Redstone Comparitor Signal Locking a ... Resolved
is duplicated by MC-92970 Locking a redstone repeater would con... Resolved
is duplicated by MC-100782 Repeter Locked by comparator does not... Resolved
is duplicated by MC-114179 Display of redstone repeater locked b... Resolved
is duplicated by MC-120284 Comparator and locked repeter graphic... Resolved
is duplicated by MC-124221 Locking repeaters with comparators Resolved
Relates
relates to MC-6640 Comparators trying to lock Repeaters ... Resolved
relates to MC-86918 Ender dragon and piglin heads are not... Resolved
CHK:
Confirmation Status: Confirmed

 Description   

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.



 Comments   
Comment by [Mod] tryashtar [ 16/Dec/17 ]

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

Comment by user33 [ 29/Apr/17 ]

Confirmed for 17w17b

Comment by bob [ 06/Nov/16 ]

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

Comment by _zombiehunter [ 20/Jan/16 ]

Still in 16w03a

Comment by Valentijn Kas [ 17/Dec/15 ]

Still in snapshot 15w50a

Comment by Simon Sutoris [ 26/Apr/15 ]

Still in 1.8.4

Comment by KingSupernova [ 29/Oct/14 ]

Confirmed for 1.8.1-pre3. 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.

Comment by CocoaMix [ 29/Sep/14 ]

Confirmed for 1.8

Comment by qmagnet [ 09/Aug/14 ]

Confirmed for 14w32d

Comment by Riley McConnell [ 10/Mar/14 ]

I thought this wasn't working but I have verified what others have said. The bug is visual only, repeaters are locking when locked by a comparator, and the visual bug can be temporarily fixed by switching the mode on the attached comparator. Screenshot of test added.
Client 14w10c

Mechanics should be functional for map makers, assuming players will not need to see the repeaters.

Comment by jay james [ 10/Mar/14 ]

14w10c, still a problem and still not solved! How are we meant to make use of these for puzzle maps etc!

Comment by 44shades44 [ 28/Oct/13 ]

Still happens in 1.7.2

Comment by _zombiehunter [ 25/Sep/13 ]

Still happens from time to time in 13w38c!

EDIT:
Tested it again, @Kwin van der Veen is completely right. Toggling the comparators torch temporary fixes the bug, reloading chunks/world resets it to its buggy behavior.

Comment by jay james [ 09/Jul/13 ]

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!

Comment by Kwin van der Veen [ 17/Feb/13 ]

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.

Comment by Daniel Harris [ 15/Feb/13 ]

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

Comment by Sorin Iliuta [ 07/Feb/13 ]

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.

Comment by Tails [ 04/Feb/13 ]

Confirmed.

Generated at Sun Jan 12 12:20:16 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.