From bc378f010c63462e63419c5376a5a122ff2f1445 Mon Sep 17 00:00:00 2001 From: Adrer Date: Sun, 11 Jun 2023 12:08:03 +0200 Subject: [PATCH] Janicart Speed Exploit Fix (#21160) * Janicart Speed Exploit Fix * Add early return --------- Co-authored-by: adrermail@gmail.com --- code/modules/vehicle/janivehicle.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/vehicle/janivehicle.dm b/code/modules/vehicle/janivehicle.dm index c49d15d346a..679dbe388eb 100644 --- a/code/modules/vehicle/janivehicle.dm +++ b/code/modules/vehicle/janivehicle.dm @@ -115,6 +115,10 @@ to_chat(user,"You upgrade [src] with [I].") update_icon(UPDATE_OVERLAYS) return + if(istype(I, /obj/item/borg/upgrade/vtec) && floorbuffer) + floorbuffer = FALSE + vehicle_move_delay -= buffer_delay + return ..() //VTEC installation is handled in parent attackby, so we're returning to it early if(mybag && user.a_intent == INTENT_HELP && !is_key(I)) mybag.attackby(I, user) else