iChun / Sync

My entry for ModJam #3
GNU Lesser General Public License v3.0
59 stars 41 forks source link

Tile entities not rendering properly with Entity Culling #235

Open Meldexun opened 3 years ago

Meldexun commented 3 years ago

Entity Culling does not call TileEntity#shouldRenderInPass(int) right before rendering the tile entity. Instead that method is called earlier for both rendering passes and the tile entity is added to up to 2 lists. Later on all tile entities in these lists will be rendered. Thus the BlockDualVertical.renderPass field is not set before rendering the tile entity. Can be fixed by calling MinecraftForgeClient#getRenderPass() to retrieve the current render pass when a tile entity is rendered.