Skip to content

Commit

Permalink
Fix AAI Loader entity order #109
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiHawk committed Nov 15, 2023
1 parent e2147ba commit 1294bf5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions boblogistics/prototypes/aai-loaders.lua
Original file line number Diff line number Diff line change
Expand Up @@ -225,19 +225,24 @@ if mods["aai-loaders"] then
end
end

-- Clear entity.order so they use item.order
-- Set subgroup
for index, item_name in pairs({
for index, loader_name in pairs({
"aai-basic-loader",
"aai-loader",
"aai-fast-loader",
"aai-express-loader",
"aai-turbo-loader",
"aai-ultimate-loader",
}) do
local item = data.raw.item[item_name]
local item = data.raw.item[loader_name]
if item then
item.subgroup = "bob-logistic-tier-" .. (index - 1)
end
local entity = data.raw["loader-1x1"][loader_name]
if entity then
entity.order = nil
end
end

-- Add prerequisites
Expand Down

0 comments on commit 1294bf5

Please sign in to comment.