1
0
mirror of https://github.com/SmallJoker/boost_cart.git synced 2024-12-26 02:40:18 +01:00

Reset player view and attachment table on death

This commit is contained in:
SmallJoker 2020-05-15 19:02:38 +02:00
parent cc293e95fe
commit 30f870e88c

View File

@ -94,7 +94,7 @@ end
-- 0.5.x and later: When the driver leaves -- 0.5.x and later: When the driver leaves
function cart_entity:on_detach_child(child) function cart_entity:on_detach_child(child)
if child and child:get_player_name() == self.driver then if child and child:get_player_name() == self.driver then
self.driver = nil boost_cart:manage_attachment(child, nil)
end end
end end