From 2bed9101fc18af0c38c2558e36bf2ea5a951b1e6 Mon Sep 17 00:00:00 2001 From: Someone Date: Mon, 10 Apr 2023 05:40:04 +0200 Subject: [PATCH] RELEASE 1.1.2 - Ignore tech.prototype.hidden technologies (cannot really test it, tho :) --- changelog.txt | 9 ++++++++- control.lua | 2 +- info.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/changelog.txt b/changelog.txt index 148139a..083d6e6 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,6 +1,13 @@ +--------------------------------------------------------------------------------------------------- +Version: 1.1.2 +Date: 2023-04-10 + + Changed: + - Ignore tech.prototype.hidden technologies (cannot really test it, tho :) + --------------------------------------------------------------------------------------------------- Version: 1.1.1 -Date: 2022-01-17 +Date: 2023-01-17 Changed: - Version-Bump. No functional changes. (I am still alive :) diff --git a/control.lua b/control.lua index b8990df..5758fbb 100644 --- a/control.lua +++ b/control.lua @@ -130,7 +130,7 @@ function getPretechs(tech) end function canResearch(force, tech, config) - if not tech or tech.researched or not tech.enabled then + if not tech or tech.researched or not tech.enabled or tech.prototype.hidden then return false end for _, pretech in pairs(tech.prerequisites) do diff --git a/info.json b/info.json index 27b023b..0e9c0c8 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "some-autoresearch", - "version": "1.1.1", + "version": "1.1.2", "title": "Auto Research (fixed + re-published)", "author": "Someone (originally canidae)", "homepage": "https://git.somenet.org/factorio/some-autoresearch.git", -- 2.43.0