private int computeBlockLightValue(int par1, int par2, int par3, int par4, int par5, int par6)
    {
        int var7 = (par5 == 0 || Block.blocksList[par5] == null ? 0 : Block.blocksList[par5].getLightValue(this, par2, par3, par4));
        int var8 = this.getSavedLightValue(EnumSkyBlock.Block, par2 - 1, par3, par4) - par6;
        int var9 = this.getSavedLightValue(EnumSkyBlock.Block, par2 + 1, par3, par4) - par6;
        int var10 = this.getSavedLightValue(EnumSkyBlock.Block, par2, par3 - 1, par4) - par6;
        int var11 = this.getSavedLightValue(EnumSkyBlock.Block, par2, par3 + 1, par4) - par6;
        int var12 = this.getSavedLightValue(EnumSkyBlock.Block, par2, par3, par4 - 1) - par6;
        int var13 = this.getSavedLightValue(EnumSkyBlock.Block, 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;
    }