Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-9194

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


    • Icon: Bug Bug
    • Resolution: Fixed
    • 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
    • Confirmed


      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.

            grum [Mojang] Grum (Erik Broes)
            fibonatic Kwin van der Veen
            35 Vote for this issue
            13 Start watching this issue