diff --git a/plugins/automelt.cpp b/plugins/automelt.cpp index ca0cf1626..862507413 100644 --- a/plugins/automelt.cpp +++ b/plugins/automelt.cpp @@ -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> &stockpiles) { - + map stockpile_config; stockpile_config.emplace("id", id); stockpile_config.emplace("monitored", monitored); diff --git a/plugins/lua/automelt.lua b/plugins/lua/automelt.lua index 395934867..cbd1bd538 100644 --- a/plugins/lua/automelt.lua +++ b/plugins/lua/automelt.lua @@ -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