From 5b92315680ba4200897c1468c7ef3bc6fbcbec67 Mon Sep 17 00:00:00 2001 From: GDN <96800819+GDNgit@users.noreply.github.com> Date: Wed, 21 Jun 2023 17:16:21 -0500 Subject: [PATCH] adds a little extra security to shuttle manip var-editing (#21374) --- code/modules/shuttle/shuttle_manipulator.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/shuttle/shuttle_manipulator.dm b/code/modules/shuttle/shuttle_manipulator.dm index 461fc02e300..0579e90877b 100644 --- a/code/modules/shuttle/shuttle_manipulator.dm +++ b/code/modules/shuttle/shuttle_manipulator.dm @@ -64,6 +64,7 @@ if("shuttle_and_preview_cooldown") log_and_message_admins("has attempted to change the [var_name] variable. Please do not do this, this can cause entire Z levels to freeze if spammed too quickly.") return FALSE // Extremely important that this doesn't get varedited by mistake, otherwise horrible, horrible things can happen to the server. + return ..() /obj/machinery/shuttle_manipulator/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.admin_state) ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open) @@ -136,7 +137,7 @@ return if(shuttle_and_preview_cooldown > world.time) to_chat(usr, "Please wait until the desired shuttle has finished being loaded.") - return + return . = TRUE switch(action)