Fix crash when train cars leave track

This commit is contained in:
teknomunk 2024-11-09 20:05:48 -06:00
parent a0ad18160b
commit e23db6eb1c
1 changed files with 1 additions and 0 deletions

View File

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