View difference between Paste ID: 1WRKKX2x and 85C6D04Z
SHOW: | | - or go back to the newest paste.
1-
Profiler.endStartSection("tileentities");
1+
	    Profiler.endStartSection("tileentities");
2
            RenderHelper.enableStandardItemLighting();
3
4
            for (var6 = 0; var6 < this.tileEntities.size(); ++var6)
5
            {
6-
                //TileEntityRenderer.instance.renderTileEntity((TileEntity)this.tileEntities.get(var6), par3);
6+
7
                if (!te.canRender)
8-
                
8+
			continue;
9-
                if (par2ICamera.isBoundingBoxInFrustum(AxisAlignedBB.getBoundingBox((double) te.xCoord, (double) te.yCoord, (double) te.zCoord, (double) te.xCoord + 1, (double) te.yCoord + 1, (double) te.zCoord + 1))) {
9+
                if (par2ICamera.isBoundingBoxInFrustum(te.getRenderBoundingBox())
10
	                TileEntityRenderer.instance.renderTileEntity(te, par3);
11-
	            }
11+
12
13
            this.mc.entityRenderer.disableLightmap((double)par3);
14
            Profiler.endSection();