Fix a random runtime when things are flung into cc teleporter (#18550)

This commit is contained in:
moxian
2022-07-25 09:48:56 +01:00
committed by GitHub
parent 75041833f9
commit 141cd4099c
+2 -1
View File
@@ -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