TESRs will are no longer used if the tile contains no dynamic renders. Added alpha pass rendering for stained glass. Enabled Stained Glass facades. Cables / Facades have less geometry by hiding faces on connected boxes. Added AlphaPass Option to disable AlphaPass Cables rendering ( fixes crash with Immbis Microblocks. )
28 lines
460 B
Java
28 lines
460 B
Java
package appeng.tile.networking;
|
|
|
|
import appeng.block.networking.BlockCableBus;
|
|
|
|
public class TileCableBusTESR extends TileCableBus
|
|
{
|
|
|
|
@Override
|
|
protected void updateTileSetting()
|
|
{
|
|
if ( !cb.requiresDynamicRender )
|
|
{
|
|
TileCableBus tcb;
|
|
try
|
|
{
|
|
tcb = (TileCableBus) BlockCableBus.noTesrTile.newInstance();
|
|
tcb.copyFrom( this );
|
|
getWorldObj().setTileEntity( xCoord, yCoord, zCoord, tcb );
|
|
}
|
|
catch (Throwable t)
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|