private int computeSkyLightValue(int par1, int par2, int par3, int par4, int par5, int par6)
    {
        int var7 = 0;

        if (this.canBlockSeeTheSky(par2, par3, par4))
        {
            var7 = 15;
        }
        else
        {
            if (par6 == 0)
            {
                par6 = 1;
            }

            int var8 = this.getSavedLightValue(EnumSkyBlock.Sky, par2 - 1, par3, par4) - par6;
            int var9 = this.getSavedLightValue(EnumSkyBlock.Sky, par2 + 1, par3, par4) - par6;
            int var10 = this.getSavedLightValue(EnumSkyBlock.Sky, par2, par3 - 1, par4) - par6;
            int var11 = this.getSavedLightValue(EnumSkyBlock.Sky, par2, par3 + 1, par4) - par6;
            int var12 = this.getSavedLightValue(EnumSkyBlock.Sky, par2, par3, par4 - 1) - par6;
            int var13 = this.getSavedLightValue(EnumSkyBlock.Sky, par2, par3, par4 + 1) - par6;

            if (var8 > var7)
            {
                var7 = var8;
            }

            if (var9 > var7)
            {
                var7 = var9;
            }

            if (var10 > var7)
            {
                var7 = var10;
            }

            if (var11 > var7)
            {
                var7 = var11;
            }

            if (var12 > var7)
            {
                var7 = var12;
            }

            if (var13 > var7)
            {
                var7 = var13;
            }
        }

        return var7;
    }