Allow partial match on train item search

This commit is contained in:
Will Berry
2023-03-10 19:42:23 -05:00
parent a9d4a22310
commit 3aa3eb970a

View File

@@ -108,7 +108,7 @@ function trains_tab.build(map_data, player_data, query_limit)
goto continue
end
for i, v in ipairs(train.manifest) do
if v.name == search_item then
if string.match(v.name, search_item) then
goto has_match
end
end