From: SmallJoker Date: Sat, 16 May 2020 17:26:28 +0000 (+0200) Subject: Carts: Re-add erroneously removed driver reset X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3452938c7653e171d7d493e1a3c51d3ab2e429cc;p=oweals%2Fminetest_game.git 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. --- 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