From ebedc56724fd03f4e4dbfc554d8025721b544769 Mon Sep 17 00:00:00 2001 From: Davis Cook Date: Thu, 21 Apr 2022 21:46:37 -0400 Subject: [PATCH] fix crash if curved rail has no items_to_place_this --- control.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control.lua b/control.lua index 4e48c28..978dc9b 100644 --- a/control.lua +++ b/control.lua @@ -75,7 +75,7 @@ local function getRailTypes() end end end - if proto.type == "curved-rail" then + if proto.type == "curved-rail" and proto.items_to_place_this then for _, item in pairs(proto.items_to_place_this) do --log(serpent.block(item)) local item_proto = game.item_prototypes[item.name]