Code: Select all
if data.raw.fluid["lithia-water"] then
{
type = recipe,
name = "void-lithia-water",
category = "void-liquid",
(etc, etc)
end
Code: Select all
data:extend
Code: Select all
if data.raw.fluid["lithia-water"] then
{
type = recipe,
name = "void-lithia-water",
category = "void-liquid",
(etc, etc)
end
Code: Select all
data:extend
Yes.Bizobinator wrote:Is there something wrong with my syntax? Does the if statement have to be outside of the?Code: Select all
data:extend
Ratsprg wrote:Yes.Bizobinator wrote:Is there something wrong with my syntax? Does the if statement have to be outside of the?Code: Select all
data:extend
Code: Select all
if data.raw.fluid["lithia-water"] then
data:extend{
{
type = recipe,
name = "void-lithia-water",
category = "void-liquid",
(etc, etc)
}
}
end