Carts: Reset player view and attachment table on death

Fixes #2681
此提交包含在:
SmallJoker
2020-05-15 19:04:34 +02:00
父節點 e5a7af1c4a
當前提交 b787fcf7e4

查看文件

@@ -66,7 +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