Liquid Rocket Fuel

by NOiZE

Adds liquid rocket fuel and corresponding rocket part recipes for rocket silos, compatible with external-rocket-parts and RocketFuelSteel.

Content
11 days ago
2.0
189
Fluids

g [fixed]Add a check condition for a planet

12 days ago

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
11 days ago

Hi Hoochie,
thanks for your feedback, this should now be implemented. Let me know if there are still any issues.

New response