mirror of
https://github.com/SmallJoker/boost_cart.git
synced 2025-02-17 12:43:42 +01:00
Set driver to nil (like before)
The driver variable is not handled by boost_cart:manage_attachment
This commit is contained in:
@ -94,6 +94,7 @@ end
|
||||
-- 0.5.x and later: When the driver leaves
|
||||
function cart_entity:on_detach_child(child)
|
||||
if child and child:get_player_name() == self.driver then
|
||||
self.driver = nil
|
||||
boost_cart:manage_attachment(child, nil)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user