mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-30 08:29:57 +01:00
Horizon operations storage will now spawn cargo correctly.
This commit is contained in:
@@ -121,7 +121,7 @@ var/list/global/random_stock_large = list()
|
||||
|
||||
/datum/cargospawner/New()
|
||||
//First lets get the reference to our warehouse
|
||||
for(var/areapath in typesof(/area/quartermaster/storage))
|
||||
for(var/areapath in typesof(current_map.warehouse_basearea))
|
||||
warehouse = locate(areapath)
|
||||
if (warehouse)
|
||||
for (var/turf/simulated/floor/T in warehouse)
|
||||
@@ -134,7 +134,7 @@ var/list/global/random_stock_large = list()
|
||||
tables |= B
|
||||
|
||||
/datum/cargospawner/proc/start()
|
||||
if (!warehouse || !warehouseturfs.len)
|
||||
if (!current_map.warehouse_basearea || !warehouse || !warehouseturfs.len)
|
||||
admin_notice("<span class='danger'>ERROR: Cargo spawner failed to locate warehouse. Terminating.</span>", R_DEBUG)
|
||||
qdel(src)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user