mirror of
https://github.com/Xevion/project-cybersyn.git
synced 2025-12-09 16:08:11 -06:00
Allow partial match on train item search
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user