feat: barrier block

todo: deprecate *.col file usage
This commit is contained in:
Fireblade
2026-04-29 16:35:14 -04:00
parent feb465ccbb
commit 950de854a1
22 changed files with 325 additions and 12 deletions
+5
View File
@@ -263,6 +263,11 @@ bool TileRenderer::tesselateInWorld( Tile* tt, int x, int y, int z, int forceDat
shared_ptr< TileEntity > forceEntity ) // 4J added forceData, forceEntity param
{
Tesselator* t = Tesselator::getInstance();
// skip in-game rendering of barrier block
if (tt != nullptr && tt->id == Tile::barrier_Id)
{
return false;
}
int shape = tt->getRenderShape();
tt->updateShape( level, x, y, z, forceData, forceEntity );
// AP - now that the culling is done earlier we don't need to call setShape until later on (only for SHAPE_BLOCK)