From 61cfcdb7d9cee119c930903290763be1d2b1af92 Mon Sep 17 00:00:00 2001 From: Erika Fox <94164348+Bjarl@users.noreply.github.com> Date: Tue, 14 Nov 2023 13:50:53 -0500 Subject: [PATCH] "Fixes" Subshuttle Error (#2477) guard clause :) --- code/modules/overmap/ships/controlled_ship_datum.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/overmap/ships/controlled_ship_datum.dm b/code/modules/overmap/ships/controlled_ship_datum.dm index 54eccd3adc9e..3aa45b06b478 100644 --- a/code/modules/overmap/ships/controlled_ship_datum.dm +++ b/code/modules/overmap/ships/controlled_ship_datum.dm @@ -77,6 +77,8 @@ shuttle_area.rename_area("[new_name] [initial(shuttle_area.name)]") if(!force) COOLDOWN_START(src, rename_cooldown, 5 MINUTES) + if(shuttle_port.virtual_z() == null) + return TRUE priority_announce("The [oldname] has been renamed to the [new_name].", "Docking Announcement", sender_override = new_name, zlevel = shuttle_port.virtual_z()) return TRUE