Skip to content

Commit

Permalink
Carts: Re-add erroneously removed driver reset
Browse files Browse the repository at this point in the history
carts:manage_attachment does not handle the driver value of the cart,
hence carts could not be used by another player until it's replaced.
  • Loading branch information
SmallJoker committed May 16, 2020
1 parent b787fcf commit 3452938
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mods/carts/cart_entity.lua
Expand Up @@ -66,6 +66,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
carts:manage_attachment(child, nil)
end
end
Expand Down

0 comments on commit 3452938

Please sign in to comment.