Skip to content
Permalink
Browse files

Carts: Reset player view and attachment table on death

Fixes #2681
  • Loading branch information
SmallJoker committed May 15, 2020
1 parent e5a7af1 commit b787fcf7e4400b3ce576454e5cc214633c353836
Showing with 1 addition and 1 deletion.
  1. +1 −1 mods/carts/cart_entity.lua
@@ -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 comments on commit b787fcf

Please sign in to comment.
You can’t perform that action at this time.