mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Merge pull request #6610 from eswordthecat/runtime-wormhole-z
Fix runtime error: Cannot read null.z
This commit is contained in:
@@ -341,11 +341,15 @@ proc/move_mining_shuttle()
|
||||
return
|
||||
else
|
||||
user.visible_message("<span class='notice'>[user.name] activates the [src.name]!</span>")
|
||||
var/list/L = list()
|
||||
for(var/obj/item/beacon/B in beacons)
|
||||
var/list/L = new()
|
||||
|
||||
for (var/obj/item/beacon/B in beacons)
|
||||
var/turf/T = get_turf(B)
|
||||
if(T.z == STATION_Z)
|
||||
L += B
|
||||
|
||||
if (!isnull(T))
|
||||
if (T.z == map.zMainStation)
|
||||
L.Add(B)
|
||||
|
||||
if(!L.len)
|
||||
user << "<span class='notice'>The [src.name] failed to create a wormhole.</span>"
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user