mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-03 05:51:56 +00:00
fixed randomstock bug (#8360)
if there weren't tables in the area, it'd shit itself cuz it can't pick from an empty list
This commit is contained in:
@@ -147,7 +147,7 @@ var/list/global/random_stock_large = list()
|
||||
|
||||
if (cratespawn)
|
||||
return emptiest
|
||||
else
|
||||
else if (length(tables))
|
||||
//If cratespawn is zero, we either failed to find a crate to spawn in, or didnt select
|
||||
//crate spawning with the random check.
|
||||
var/turf/clearest
|
||||
|
||||
Reference in New Issue
Block a user