Skip to content

Commit

Permalink
Format Code
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiHawk committed Nov 15, 2023
1 parent fea2a9b commit d9036ef
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions boblogistics/prototypes/aai-loaders.lua
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,8 @@ if mods["aai-loaders"] then
{ "automation-science-pack", 1 },
{ "logistic-science-pack", 1 },
{ "chemical-science-pack", 1 },
bobmods.tech and bobmods.tech.advanced_logistic_science and
{ "advanced-logistic-science-pack", 1 } or
{ "production-science-pack", 1 },
bobmods.tech and bobmods.tech.advanced_logistic_science and { "advanced-logistic-science-pack", 1 }
or { "production-science-pack", 1 },
{ "utility-science-pack", 1 },
},
time = 30,
Expand Down Expand Up @@ -252,10 +251,14 @@ if mods["aai-loaders"] then
end

-- Add prerequisites

if bobmods.tech and bobmods.tech.advanced_logistic_science then
bobmods.lib.tech.add_prerequisite("aai-express-loader", "advanced-logistic-science-pack")
bobmods.lib.tech.replace_science_pack("aai-express-loader", "production-science-pack", "advanced-logistic-science-pack")
bobmods.lib.tech.replace_science_pack(
"aai-express-loader",
"production-science-pack",
"advanced-logistic-science-pack"
)
else
bobmods.lib.tech.add_prerequisite("aai-express-loader", "production-science-pack")
end
Expand Down

0 comments on commit d9036ef

Please sign in to comment.