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

Displaying block states info in F3 screen out of sync

XMLWordPrintable

    • Unconfirmed
    • (Unassigned)

      Overview

      When I was checking the F3 screen to get some info of the targeting block states, I found that some block states are "out of sync" with the real block states.

      Related blocks are: cactus, sugar cane, saplings, hopper, dispenser and dropper.

      This issue is quite annoying, at least for me, because I need to check whether my dispensers, droppers and hoppers in my contraptions function normally. In order to do this I usually check the F3 screen, but I have found that the info in the F3 screen is wrong.

      I hope that the upcoming 1.15 could fix this issue.

      Details

      For dispenser and dropper, the <triggered> state does not change when it is powered/depowered.

      For hopper, the <enable> state does not change when it is powered/depowered.

      For cactus and sugar cane, the <age> state does not change when it is growing.

      For sapling, the <stage> state does not change when it is growing.

      More detailed information is included in the attached screenshots.

      Suggestion

      Having found this issue, I've checked the game code using 1.14.4 forge, and tried to find the corresponding code of the latest snapshot with the help of the obfuscation maps.

      In the code of those six blocks mentioned, the setBlock() method (net.minecraft.world.level.Level.setBlock()) is called with a flag of 4, so the changes are not sent to clients, since the 0x2 bit is 0.

      Change those flags to 6 may fix this issue.

        1. 2019-09-22_20.58.18.png
          2019-09-22_20.58.18.png
          154 kB
        2. 2019-09-22_20.57.27.png
          2019-09-22_20.57.27.png
          186 kB
        3. 2019-09-22_21.17.42.png
          2019-09-22_21.17.42.png
          258 kB
        4. 2019-09-22_20.57.07.png
          2019-09-22_20.57.07.png
          172 kB
        5. 2019-09-22_21.05.17.png
          2019-09-22_21.05.17.png
          272 kB
        6. 2019-09-22_21.01.49.png
          2019-09-22_21.01.49.png
          186 kB

            Unassigned Unassigned
            hutr2002 hutr2002
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: