From b787fcf7e4400b3ce576454e5cc214633c353836 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Fri, 15 May 2020 19:04:34 +0200 Subject: [PATCH] Carts: Reset player view and attachment table on death Fixes #2681 --- mods/carts/cart_entity.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/carts/cart_entity.lua b/mods/carts/cart_entity.lua index 39c4c5ca..b95fde70 100644 --- a/mods/carts/cart_entity.lua +++ b/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 -- 2.25.1