[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
develop
pre-commit-ci[bot] 2023-02-08 19:06:33 +00:00
parent 02a249fdee
commit bf0b3f8845
2 changed files with 3 additions and 3 deletions

@ -568,7 +568,7 @@ static void push_stockpile_config(lua_State *L, PersistentDataItem &c) {
}
static void emplace_bulk_stockpile_config(lua_State *L, int id, bool monitored, map<int32_t, map<string, int32_t>> &stockpiles) {
map<string, int32_t> stockpile_config;
stockpile_config.emplace("id", id);
stockpile_config.emplace("monitored", monitored);

@ -66,7 +66,7 @@ function getItemCountsAndStockpileConfigs()
ret.premarked_item_counts = table.remove(data, 1)
local unparsed_stockpile_configs = table.remove(data, 1)
ret.stockpile_configs = {}
for idx,c in pairs(unparsed_stockpile_configs) do
if not c.id or c.id == -1 then
c.name = "ERROR"
@ -79,7 +79,7 @@ function getItemCountsAndStockpileConfigs()
c.monitored = c.monitored ~= 0
end
table.insert(ret.stockpile_configs, c)
end
return ret
end