From 141cd4099c6804f660afe949b98559f61baaf03f Mon Sep 17 00:00:00 2001 From: moxian Date: Mon, 25 Jul 2022 08:48:56 +0000 Subject: [PATCH] Fix a random runtime when things are flung into cc teleporter (#18550) --- code/game/machinery/teleporter.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/game/machinery/teleporter.dm b/code/game/machinery/teleporter.dm index 3e24240aa0a..708e764a615 100644 --- a/code/game/machinery/teleporter.dm +++ b/code/game/machinery/teleporter.dm @@ -380,7 +380,8 @@ /obj/machinery/teleport/hub/Bumped(M as mob|obj) if(!is_teleport_allowed(z) && !admin_usage) - to_chat(M, "You can't use this here.") + if(ismob(M)) + to_chat(M, "You can't use this here.") return if(power_station && power_station.engaged && !panel_open && !blockAI(M)) if(!teleport(M) && isliving(M)) // the isliving(M) is needed to avoid triggering errors if a spark bumps the telehub