Hi!
Thanks for the mod!
Currently, there's a problem that prevents me from fully enjoying the game, as it causes an error :)
You have the following code in two places: file "data-updates.lua," line 189 and line 203:
for _, planet in pairs(data.raw["planet"]) do
The problem is that if a planet is created but hidden, and the planet has no parameters other than the required ones, the code causes an error regarding the missing parameters.
For example:
data:extend{{
type = "planet",
name = mod_name,
icon = "__kr-air-purifier-helper__/graphics/air-purifier.png",
distance = 0,
orientation = 0,
hidden = true,
}}
Therefore, I propose a change to avoid such cases and assume that if a planet prototype is hidden, it definitely shouldn't be used. This means adding the following check condition:
for _, planet in pairs(data.raw["planet"]) do
if not data.raw["planet"][planet.name].hidden then