Skip to content

Commit b787fcf

Browse files
committedMay 15, 2020
Carts: Reset player view and attachment table on death
Fixes #2681
1 parent e5a7af1 commit b787fcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎mods/carts/cart_entity.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ end
6666
-- 0.5.x and later: When the driver leaves
6767
function cart_entity:on_detach_child(child)
6868
if child and child:get_player_name() == self.driver then
69-
self.driver = nil
69+
carts:manage_attachment(child, nil)
7070
end
7171
end
7272

0 commit comments

Comments
 (0)
Please sign in to comment.