Fix crash when train cars leave track

This commit is contained in:
teknomunk 2024-11-09 20:05:48 -06:00 committed by the-real-herowl
parent aacc4b5d4a
commit 879175bb97

@ -121,6 +121,7 @@ end
local function detach_minecart(staticdata)
handle_cart_leave(staticdata, staticdata.connected_at, staticdata.dir)
staticdata.connected_at = nil
mod.break_train_at(staticdata)
local luaentity = mcl_util.get_luaentity_from_uuid(staticdata.uuid)
if luaentity then