From 6a6a846d5f49163b1ae67f051cf9ef9caffcc73f Mon Sep 17 00:00:00 2001 From: Brevven Date: Fri, 27 Dec 2024 03:02:08 -0800 Subject: [PATCH] fluid mining tweak --- control-util.lua | 16 +++++++++------- me.lua | 1 + 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/control-util.lua b/control-util.lua index a9964c8..158f049 100644 --- a/control-util.lua +++ b/control-util.lua @@ -13,13 +13,15 @@ function decode(data) end function util.check_fluid_mining() - for i, force in pairs(game.forces) do - if ( - (force.technologies["uranium-processing"] and force.technologies["uranium-processing"].researched) or - (force.technologies["titanium-processing"] and force.technologies["titanium-processing"].researched) or - false - ) then - force.technologies["fluid-mining"].researched = true + if me.fluid_mining then + for i, force in pairs(game.forces) do + if ( + (force.technologies["uranium-processing"] and force.technologies["uranium-processing"].researched) or + (force.technologies["titanium-processing"] and force.technologies["titanium-processing"].researched) or + false + ) then + force.technologies["fluid-mining"].researched = true + end end end end diff --git a/me.lua b/me.lua index 7ebbdc4..1671547 100644 --- a/me.lua +++ b/me.lua @@ -1,6 +1,7 @@ local me = {} me.name = "bztitanium" +me.fluid_mining = true me.titanium_plate = "" me.titanium_processing = "" me.ores_for_workaround = {{name="titanium-ore", amount=100000, tiles=300}}