From: Someone Date: Sat, 2 Nov 2024 11:17:25 +0000 (+0100) Subject: RELEASE 2.0.6 - Search should no longer show anything with zero ingredients X-Git-Url: https://git.somenet.org/factorio/some-autoresearch.git/commitdiff_plain?ds=sidebyside RELEASE 2.0.6 - Search should no longer show anything with zero ingredients --- diff --git a/changelog.txt b/changelog.txt index c6f1e89..dba264c 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,10 @@ +--------------------------------------------------------------------------------------------------- +Version: 2.0.6 +Date: 2024-11-02 + + Changed: + - Search should no longer show anything with zero ingredients. + --------------------------------------------------------------------------------------------------- Version: 2.0.5 Date: 2024-10-26 diff --git a/control.lua b/control.lua index ce1a090..5717d67 100644 --- a/control.lua +++ b/control.lua @@ -582,7 +582,7 @@ gui = { text = string.lower(text) -- NOTICE: localised name matching does not work at present, pending unlikely changes to Factorio API for name, tech in pairs(player.force.technologies) do - if not tech.researched and tech.enabled then + if not tech.researched and tech.enabled and #tech.research_unit_ingredients > 0 then local showtech = false if string.find(string.lower(name), text, 1, true) then -- show techs that match by name diff --git a/info.json b/info.json index d4f2f9b..9fd0b24 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "some-autoresearch", - "version": "2.0.5", + "version": "2.0.6", "title": "Auto Research (fixed + re-published)", "author": "Someone (originally canidae)", "homepage": "https://git.somenet.org/factorio/some-autoresearch.git",