From c8f7cae2c8a4e495cc69bc0351240123da53ddf6 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Sat, 16 May 2020 19:13:26 +0200 Subject: [PATCH] Set driver to nil (like before) The driver variable is not handled by boost_cart:manage_attachment --- cart_entity.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/cart_entity.lua b/cart_entity.lua index 73ae7d4..6f23613 100644 --- a/cart_entity.lua +++ b/cart_entity.lua @@ -94,6 +94,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 boost_cart:manage_attachment(child, nil) end end