RELEASE 2.0.6 - Search should no longer show anything with zero ingredients

This commit is contained in:
Someone
2024-11-02 12:17:25 +01:00
parent 0c5d6816eb
commit d3fdb5f111
3 changed files with 9 additions and 2 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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",