From 0745601d3f0c4665d8cd1384f87f165ba6790f34 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Mon, 16 Jun 2025 19:24:08 +0900 Subject: [PATCH] . --- PHI-CL/data.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/PHI-CL/data.lua b/PHI-CL/data.lua index a3e4b01..a50db1f 100644 --- a/PHI-CL/data.lua +++ b/PHI-CL/data.lua @@ -1704,9 +1704,15 @@ if settings.startup['PHI-CT'].value then end end - table.insert(data.raw.technology['logistics'].effects, {type = 'unlock-recipe', recipe = 'loader'}) - table.insert(data.raw.technology['logistics-2'].effects, {type = 'unlock-recipe', recipe = 'fast-loader'}) - table.insert(data.raw.technology['logistics-3'].effects, {type = 'unlock-recipe', recipe = 'express-loader'}) + if data.raw['loader']['loader'] and data.raw['loader']['fast-loader'] and data.raw['loader']['express-loader'] then + table.insert(data.raw.technology['logistics'].effects, {type = 'unlock-recipe', recipe = 'loader'}) + table.insert(data.raw.technology['logistics-2'].effects, {type = 'unlock-recipe', recipe = 'fast-loader'}) + table.insert(data.raw.technology['logistics-3'].effects, {type = 'unlock-recipe', recipe = 'express-loader'}) + end + + if data.raw['loader']['loader'] and data.raw['loader']['turbo-loader'] then + table.insert(data.raw.technology['turbo-transport-belt'].effects, {type = 'unlock-recipe', recipe = 'turbo-loader'}) + end for _, v in pairs({'underground-belt', 'fast-underground-belt', 'express-underground-belt', 'turbo-underground-belt'}) do if data.raw.item[v] then