mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-25 05:51:56 +01:00
Kill unnecessary startup exceptions (#17161)
* Atomization * dsaf * Apply suggestions from code review Co-authored-by: SleepyGemmy <99297919+SleepyGemmy@users.noreply.github.com> --------- Co-authored-by: FluffyGhost <FluffyGhost> Co-authored-by: SleepyGemmy <99297919+SleepyGemmy@users.noreply.github.com>
This commit is contained in:
co-authored by
SleepyGemmy
FluffyGhost <FluffyGhost>
parent
363f771fa4
commit
dc3c5e7868
@@ -170,6 +170,11 @@ var/datum/controller/subsystem/cargo/SScargo
|
||||
//Loads the cargo data from JSON
|
||||
/datum/controller/subsystem/cargo/proc/load_from_json()
|
||||
var/list/cargoconfig = list()
|
||||
|
||||
if(!isfile("config/cargo.json"))
|
||||
log_config("The file config/cargo.json was not found, cargo items will not be loaded.")
|
||||
return
|
||||
|
||||
try
|
||||
cargoconfig = json_decode(return_file_text("config/cargo.json"))
|
||||
catch(var/exception/ej)
|
||||
|
||||
@@ -129,6 +129,11 @@ var/datum/controller/subsystem/chemistry/SSchemistry
|
||||
/datum/controller/subsystem/chemistry/proc/load_secret_chemicals()
|
||||
. = 0
|
||||
var/list/chemconfig = list()
|
||||
|
||||
if(!isfile("config/secretchem.json"))
|
||||
log_config("The file config/secretchem.json was not found, secret chemicals will not be loaded.")
|
||||
return
|
||||
|
||||
try
|
||||
chemconfig = json_decode(return_file_text("config/secretchem.json"))
|
||||
catch(var/exception/e)
|
||||
|
||||
Reference in New Issue
Block a user