Set driver to nil (like before)

The driver variable is not handled by boost_cart:manage_attachment
This commit is contained in:
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