Mojira Archive
MC-112292

Texture for blocks using TileEntitySpecialRenderer is not bound for short moment when entering world and in superflat settings

The bug

The texture for blocks using TileEntitySpecialRenderer to be rendered is not bound for a short moment when entering a world and all the time in the superflat settings. This causes these blocks to have a texture consisting out of all kind of blocks, see Incorrect chest texture (1.11.2).png.

Once the player opened a world or joined a server the field is initialized and after that the affected blocks are always rendered correctly.

Affected blocks

Last updated for 1.13.2

  • chest
  • trapped_chest
  • ender_chest
  • *_shulker_box (all colored shulker boxes, for example white_shulker_box)
  • beds

How to reproduce

  1. Open Minecraft
  2. Directly open the superflat settings without doing something different before
  3. Enter the following preset
    3;minecraft:chest;1
    
  4. Click "Use Preset" to see the preview

Code analysis

Based on 1.11 decompiled using MCP 9.35 rc1

This seems to be happening because the field net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher.renderEngine is still null.