public void setLightValue(EnumSkyBlock par1EnumSkyBlock, int par2, int par3, int par4, int par5)
    {
        if (par3 >> 4 >= storageArrays.length || par3 >> 4 < 0)
        {
            return;
        }
        
        ExtendedBlockStorage var6 = this.storageArrays[par3 >> 4];

        if (var6 == null)
        {
            var6 = this.storageArrays[par3 >> 4] = new ExtendedBlockStorage(par3 >> 4 << 4);
            this.generateSkylightMap();
        }

        this.isModified = true;

        if (par1EnumSkyBlock == EnumSkyBlock.Sky)
        {
            if (!this.worldObj.worldProvider.hasNoSky)
            {
                var6.setExtSkylightValue(par2, par3 & 15, par4, par5);
            }
        }
        else
        {
            if (par1EnumSkyBlock != EnumSkyBlock.Block)
            {
                return;
            }

            var6.setExtBlocklightValue(par2, par3 & 15, par4, par5);
        }
    }