Skip to content

Commit

Permalink
Carts: Reset player view and attachment table on death
Browse files Browse the repository at this point in the history
Fixes #2681
  • Loading branch information
SmallJoker committed May 15, 2020
1 parent e5a7af1 commit b787fcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/carts/cart_entity.lua
Expand Up @@ -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

Expand Down

0 comments on commit b787fcf

Please sign in to comment.