mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-15 00:54:16 +01:00
Prevent communicators from connecting to the exonet when off station.
This commit is contained in:
@@ -174,6 +174,11 @@ var/global/list/obj/item/device/communicator/all_communicators = list()
|
||||
// Description: Simple check to see if the exonet node is active.
|
||||
/obj/item/device/communicator/proc/get_connection_to_tcomms()
|
||||
if(node && node.on && node.allow_external_communicators && !is_jammed(src))
|
||||
// VOREStation Edit Start - Lose connection if too far from our exonet node.
|
||||
var/turf/T = get_turf(src)
|
||||
if(!T || !is_on_same_plane_or_station(T.z, node.z))
|
||||
return 0
|
||||
// VOREStation Edit End
|
||||
return 1
|
||||
return 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user