if not has_omni_light then
table.insert(lights,
{
minimum_darkness = my_light_minimum_darkness,
intensity = my_light_intensity * iif(add_omni_full,1,0.5),
size =iif(add_omni_full,my_light_size,20),
}
There is a code error here to update 0.0.4
if not has_omni_light then
table.insert(lights,
{
minimum_darkness = my_light_minimum_darkness,
intensity = my_light_intensity * (add_omni_full and 1 or 0.5),
size = add_omni_full and my_light_size or 20,
}
)
end