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

End gateway beam stutters during its animation because it only uses integer heights

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w44a, Minecraft 18w45a
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The end gateway beam stutters during its animation because it only uses integer heights.

      To reproduce

      1. Place an end gateway block
      2. Fly up around 45 blocks
      3. Toss an item down at the end gateway
      4. Move back so that you have an angle to see both the gateway and the beam.
      5. When the beam appears, it will not smoothly move between positions.

      If no beam appears, make sure that the item went in and that the gateway block was within your field of view (MC-136756).

      Alternatively, MC-136757 works well for reproducing this since you have a beam that varies in height at a rate you can control.

      Fix

      The code to render the beam in TileEntityEndGatewayRenderer uses TileEntityBeaconRenderer.renderBeamSegment, which takes an integer height. Changing that to a double would solve the problem entirely. Note that the rest of the code does correctly interpolate (including using partialTicks); it's only this last step that's incorrect.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pokechu22 [Mod] Pokechu22
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                CHK: