@Override public void renderWorldBlock( RenderBlocks renderblocks, IBlockAccess iba, int i, int j, int k, int md) { TileLogic tl = (TileLogic) CoreLib.getTileEntity(iba, i, j, k, TileLogic.class); if (tl != null) { Tessellator tess = Tessellator.instance; tess.draw(); // this.renderCovers(iba, tl); super.context.setBrightness(super.block.getMixedBrightnessForBlock(iba, i, j, k)); this.setMatrixWorld(i, j, k, tl.Rotation); this.renderWorldPart(iba, tl); int ts = this.getTorchState(tl); RenderLogic.TorchPos[] tpv = this.getTorchVectors(tl); if (tpv != null) { for (int n = 0; n < tpv.length; ++n) { // TODO: . // IIcon icon = (ts & 1 << n) > 0 ? super.block.getIcon(0, md) :super.block.getIcon(1, // md); this.renderRedstoneTorch(tpv[n].x, tpv[n].y, tpv[n].z, tpv[n].h, (ts & 1 << n) > 0); } } this.context.bindBlockTexture(); tess.startDrawingQuads(); } }