From 4498605509eeb1a3abc96973f51dfee1b2a1ebe8 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Mon, 6 Nov 2017 17:38:12 +0100 Subject: [PATCH] Hacky bugfix: Force updating player attachment rotation after detach --- functions.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functions.lua b/functions.lua index ec04bb7..e078a24 100644 --- a/functions.lua +++ b/functions.lua @@ -24,6 +24,8 @@ function boost_cart:manage_attachment(player, obj) else player:set_detach() player:set_eye_offset({x=0, y=0, z=0},{x=0, y=0, z=0}) + -- HACK in effect! Force updating the attachment rotation + player:set_properties({}) end end