mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-01-06 08:37:30 +01:00
Fix crash with minecart on activator rail
This commit is contained in:
parent
cc74a5e75e
commit
fd559ec40d
@ -67,6 +67,8 @@ local function detach_driver(self)
|
||||
--print("No player object found for "..driver_name)
|
||||
end
|
||||
end
|
||||
mod.detach_driver = detach_driver
|
||||
|
||||
function mod.kill_cart(staticdata, killer)
|
||||
local pos
|
||||
mcl_log("cart #"..staticdata.uuid.." was killed")
|
||||
|
@ -7,7 +7,7 @@ local mod = mcl_minecarts
|
||||
local PASSENGER_ATTACH_POSITION = mod.PASSENGER_ATTACH_POSITION
|
||||
|
||||
local function activate_normal_minecart(self)
|
||||
detach_driver(self)
|
||||
mod.detach_driver(self)
|
||||
|
||||
-- Detach passenger
|
||||
if self._passenger then
|
||||
|
Loading…
Reference in New Issue
Block a user