Skip to content
Snippets Groups Projects
Commit b787fcf7 authored by SmallJoker's avatar SmallJoker
Browse files

Carts: Reset player view and attachment table on death

Fixes #2681
parent e5a7af1c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment