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

Hoppers cannot pull items from double chests if second chest is blocked

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.9.1 Pre-Release 1, Minecraft 1.9.1 Pre-Release 2, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.1, Minecraft 1.9.2, Minecraft 16w14a, Minecraft 16w15a, Minecraft 16w15b, Minecraft 1.9.3 Pre-Release 1, Minecraft 1.9.3 Pre-Release 2, Minecraft 1.9.3 Pre-Release 3, Minecraft 1.9.3, Minecraft 1.9.4, Minecraft 16w20a, Minecraft 16w21a, Minecraft 16w21b, Minecraft 1.10 Pre-Release 1, Minecraft 1.10 Pre-Release 2, Minecraft 1.10, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w39a, Minecraft 16w42a, Minecraft 16w43a, Minecraft 16w44a, Minecraft 1.11 Pre-Release 1, Minecraft 1.11, Minecraft 1.11.2, Minecraft 17w14a, Minecraft 1.12, 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 17w45b, Minecraft 17w46a, Minecraft 17w47b
    • Fix Version/s: Minecraft 17w49a
    • Confirmation Status:
      Confirmed

      Description

      The bug

      Hoppers can now pull items from blocked chests. However, this is not working correctly for double chests. If the second chest (first chest being the one where the hopper is below) is blocked the hopper is unable to pull items from the double chest.

      Code analysis

      Based on 1.11.2 decompiled using MCP 9.35 rc1

      The method net.minecraft.block.BlockChest.getContainer(World, BlockPos, boolean) ignores the allowBlocking paramter (= third parameter; should be called "allowBlockedChests" or similar) when checking if adjacent chests are blocked.

        Attachments

        1. 2016-03-09_18.21.43.png
          2016-03-09_18.21.43.png
          17 kB
        2. 2017-01-09_23.36.49.png
          2017-01-09_23.36.49.png
          92 kB
        3. 2017-01-09_23.37.32.png
          2017-01-09_23.37.32.png
          178 kB
        4. 2017-01-09_23.37.45.png
          2017-01-09_23.37.45.png
          219 kB
        5. 2017-01-09_23.37.59.png
          2017-01-09_23.37.59.png
          240 kB
        6. 2017-01-09_23.38.05.png
          2017-01-09_23.38.05.png
          210 kB
        7. 2017-01-09_23.38.11.png
          2017-01-09_23.38.11.png
          143 kB
        8. 2017-01-09_23.51.04.png
          2017-01-09_23.51.04.png
          144 kB
        9. 2017-01-09_23.51.18.png
          2017-01-09_23.51.18.png
          101 kB

          Issue Links

            Activity

              People

              • Assignee:
                grum [Mojang] Grum (Erik Broes)
                Reporter:
                panda4994 Panda
              • Votes:
                17 Vote for this issue
                Watchers:
                16 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: