From c6bf47869929e004f879d7464bcfecefff4d9c19 Mon Sep 17 00:00:00 2001 From: sh4dow Date: Thu, 5 May 2022 01:13:56 +0200 Subject: [PATCH] ElectricTrains compatability Fixes a crash when trying to modify a dummy entity by ElectricTrains --- scripts/electronic/el_burner.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/electronic/el_burner.lua b/scripts/electronic/el_burner.lua index fd45c80..868341e 100644 --- a/scripts/electronic/el_burner.lua +++ b/scripts/electronic/el_burner.lua @@ -1,4 +1,5 @@ function make_burner_recipe(item) + if string.find(item, "dummy") then return end -- fix for ElectricTrains crash local blank = { name = 'fu_burn_oxygen_recipe', type = 'recipe', @@ -38,4 +39,4 @@ function burner_recipe_generator() end -burner_recipe_generator() \ No newline at end of file +burner_recipe_generator()