Skip to content

Commit f6511c2

Browse files
committed
Fix announcing researches which depend on mining
1 parent 770c84f commit f6511c2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

scripts/research.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,11 @@ local function localise_trigger(tech, trig)
162162
end
163163
table.insert(res, quality_name)
164164
elseif trig.type == "mine-entity" then
165-
table.insert(res, Localising.get_localised_name_with_fallback(prototypes.entity[trig.entity]))
165+
local parts = {}
166+
for _, e in pairs(trig.entities) do
167+
table.insert(parts, Localising.get_localised_name_with_fallback(prototypes.entity[e]))
168+
end
169+
table.insert(res, FaUtils.localise_cat_table(parts, ", "))
166170
elseif trig.type == "craft-fluid" then
167171
table.insert(res, Localising.get_localised_name_with_fallback(prototypes.fluid[trig.fluid]))
168172
table.insert(res, trig.amount)

0 commit comments

Comments
 (0)