Browse Source

Carts: Re-add erroneously removed driver reset

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.
pull/2554/merge
SmallJoker 2 weeks ago
parent
commit
3452938c76
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      mods/carts/cart_entity.lua

+ 1
- 0
mods/carts/cart_entity.lua View File

@@ -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


Loading…
Cancel
Save