mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-15 16:17:36 +01:00
Fix a random runtime when things are flung into cc teleporter (#18550)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user