mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-01-08 17:47:30 +01:00
Fix crash when train cars leave track
This commit is contained in:
parent
aacc4b5d4a
commit
879175bb97
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user