From 3452938c7653e171d7d493e1a3c51d3ab2e429cc Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Sat, 16 May 2020 19:26:28 +0200 Subject: [PATCH] Carts: Re-add erroneously removed driver reset carts:manage_attachment does not handle the driver value of the cart, hence carts could not be used by another player until it's replaced. --- mods/carts/cart_entity.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/carts/cart_entity.lua b/mods/carts/cart_entity.lua index b95fde70..734711be 100644 --- a/mods/carts/cart_entity.lua +++ b/mods/carts/cart_entity.lua @@ -66,6 +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