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

Beacon beam and structure block render twice per frame


    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 1.11.2, Minecraft 1.12 Pre-Release 6, Minecraft 17w47b, 1.15.1, 1.16.3, 1.16.4, 20w48a, 1.19.2
    • Confirmed
    • Beacon, Rendering

      The bug

      Beacon beams and structure block outlines will render themselves twice per frame if the chunk sector that the block entity is in is in view.
      This can be observed by the opacity of a beacon beam changing:

      The decreased opacity when looking upward indicates there is only a single render.

      As side note this bug was introduced in the fix to MC-68247

      Affected blocks

      Last updated for 1.11.2

      • beacon
      • structure_block

      Code analysis

      Based on 1.11.2 decompiled using MCP 9.35 rc1

      This happens because the method net.minecraft.client.renderer.RenderGlobal.renderEntities(Entity, ICamera, float) first renders all tile entities and then all "global" tile entities. These are in the set net.minecraft.client.renderer.RenderGlobal.setTileEntities because their overridden method net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer.isGlobalRenderer(T) returns true.

            Unassigned Unassigned
            pau101 Paul Fulham
            13 Vote for this issue
            8 Start watching this issue