From 6143832ee39571fb725d616fe58a2322e3da3a1f Mon Sep 17 00:00:00 2001 From: teknomunk Date: Fri, 8 Nov 2024 07:19:33 -0600 Subject: [PATCH] Fix crash --- mods/ENTITIES/mcl_minecarts/functions.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/ENTITIES/mcl_minecarts/functions.lua b/mods/ENTITIES/mcl_minecarts/functions.lua index f0012cea5..85895f54c 100644 --- a/mods/ENTITIES/mcl_minecarts/functions.lua +++ b/mods/ENTITIES/mcl_minecarts/functions.lua @@ -274,6 +274,7 @@ local function bend_straight_rail(pos, towards) if rail_type == 0 then return end -- Only bend unbent rails + if not nodedef._mcl_minecarts then return end if node.name ~= nodedef._mcl_minecarts.base_name then return end -- only bend rails that have at least one free end