Browse Source

Set driver to nil (like before)

The driver variable is not handled by boost_cart:manage_attachment
pull/29/merge
SmallJoker 2 weeks ago
parent
commit
c8f7cae2c8
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      cart_entity.lua

+ 1
- 0
cart_entity.lua View File

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


Loading…
Cancel
Save