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

Bed has some impossible block states [Code issue]

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • Minecraft 1.10.2
    • None
    • Windows 10 x64
      Java Version 8 Update 102
    • Unconfirmed

      When a bed's state is converted to numerical meta and vice-versa (getMetaFromState and getStateFromMeta in MCP) it stores or reads the 'occupied' flag only if the block is the head end of the bed, but when the block is converted to its 'actual state' for rendering (getActualState in MCP) it will only read the occupied flag if the block is the foot end of the bed.

      This causes the following issues:
      The renderer can never see the actual occupied state of beds, so it is not accessible in block state files.

      Can break any other code which reads the state through getActualState - I'm not sure if there is any such code but there easily could be.

            Unassigned Unassigned
            conormcs kasamikona
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: