From d3fdb5f111c3355cc9a94a07ebd97a76c895ca94 Mon Sep 17 00:00:00 2001 From: Someone Date: Sat, 2 Nov 2024 12:17:25 +0100 Subject: [PATCH] RELEASE 2.0.6 - Search should no longer show anything with zero ingredients --- changelog.txt | 7 +++++++ control.lua | 2 +- info.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) 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", -- 2.43.0