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

Entities can fall through moving fences

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 16w50a
    • Minecraft 16w43a, Minecraft 16w44a, Minecraft 1.11 Pre-Release 1, Minecraft 1.11
    • None
    • Confirmed

      Blocks that connect to each other/their surrounding loose their connections while being moved by a piston.

      This issue can be shown well by putting an entity on top of a row of fences and moving the fences below it.

      Video: https://www.youtube.com/watch?v=dnZHW9URLvQ

      As the connection is lost (all fences have a small collision box) the entity can fall through between the fences while they are moving.

      (Collision boxes while the fences are moving)

      Cause

      It turns out there is already code in place to make block keep the state it had when it starts movingĀ¹.
      However the methods that get the bounding box(es) make sure to calculate the actual state again, so they calculate it from the surrounding blocks of the moving block which leads to the wrong values.
      To fix this it somehow needs to be made sure that when the piston gets the bounding boxes the state is not recalculated, but instead the values that were set when the piston started moving are used.

      1) That actual state would be forgotten when reloading the tileentity, but that's another tiny bug.

            grum [Mojang] Grum (Erik Broes)
            panda4994 [Mojang] Panda
            Votes:
            7 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: