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
- Open Minecraft
- Directly open the superflat settings without doing something different before
- Enter the following preset
3;minecraft:chest;1
- 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.
2017-01-06, 08:34 PM
2019-11-23, 07:14 PM
2019-11-23, 07:14 PM
10
7
block, chest, ender_chest, rendering, shulker_box, superflat-customization, texture, trapped_chest
Minecraft 1.11.2 - Minecraft 19w07a
Minecraft 1.11.2, Minecraft 17w13a, Minecraft 17w13b, Minecraft 17w14a, Minecraft 17w16a, Minecraft 17w16b, Minecraft 1.12 Pre-Release 2, Minecraft 1.12.1, Minecraft 1.12.2 Pre-Release 1, Minecraft 1.12.2, Minecraft 18w07c, Minecraft 1.13, Minecraft 18w30a, Minecraft 1.13.2, Minecraft 19w07a