From 056de5cac6f72dc2bdf0eb49568d3a832a5e1a17 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Thu, 27 Mar 2025 20:08:10 +0900 Subject: [PATCH] . --- PHI-CL/control.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PHI-CL/control.lua b/PHI-CL/control.lua index f3f9fd0..d58943d 100644 --- a/PHI-CL/control.lua +++ b/PHI-CL/control.lua @@ -28,7 +28,9 @@ if settings.startup['PHI-CT'].value then local force = game.players[e.player_index].force for _, v in pairs(prototypes.fluid) do - force.recipes['pump-' .. v.name].enabled = enable + if data.raw.recipe['pump-' .. v.name] then + force.recipes['pump-' .. v.name].enabled = enable + end end force.recipes['super-radar'].enabled = enable