Set driver to nil (like before)

The driver variable is not handled by boost_cart:manage_attachment
这个提交包含在:
SmallJoker 2020-05-16 19:13:26 +02:00
父节点 30f870e88c
当前提交 c8f7cae2c8
共有 1 个文件被更改,包括 1 次插入0 次删除

查看文件

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