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

Leaves are considered solid faces for block placement

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.14.4, 19w37a, 19w39a, 19w41a, 19w46b
    • Fix Version/s: 1.15 Pre-release 1
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      Block states
    • Mojang Priority:
      Important

      Description

      Blocks that previously could not be placed on leaves, can now be placed on leaves.

      Analysis (mojang mappings)

      This is speculative, but it seems to be caused by the BlockState cache, which caches the results of isFaceSturdy for all blockstates shortly after blocks are defined. If this runs before blocks are added to tags, the check for the leaves tag in Block.isFaceSturdy will fail once and never be run again, since the cache will be used from that point onward.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ProfMobius [Mojang] ProfMobius (Thomas Guimbretiere)
                Reporter:
                tryashtar [Mod] tryashtar
              • Votes:
                3 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: