]> git.somenet.org - factorio/some-autoresearch.git/commitdiff
RELEASE 2.0.6 - Search should no longer show anything with zero ingredients master
authorSomeone <someone@somenet.org>
Sat, 2 Nov 2024 11:17:25 +0000 (12:17 +0100)
committerSomeone <someone@somenet.org>
Sat, 2 Nov 2024 11:17:25 +0000 (12:17 +0100)
changelog.txt
control.lua
info.json

index c6f1e892cdb7abd95e1ec950fb21360ffe3b6ff0..dba264c8d96ae9f5e72be3f875f7e214d4de9435 100644 (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
index ce1a090606f5ec6d010102695571b8edb773d1e1..5717d67f4646670b4af47bfdb48148aa682c7e69 100644 (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
index d4f2f9ba0fc59657311c012892a774c8ec2e08ad..9fd0b248a0f0aef94f473a2d5ddc78666ed01e5d 100644 (file)
--- 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",