mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-27 07:08:55 +01:00
[MIRROR] JSON Logging Refactor (#11623)
Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Selis
Kashargul
parent
272afa33c8
commit
5a62077f2c
@@ -143,7 +143,7 @@ var/list/name_to_material
|
||||
if(istext(key)) // text ID
|
||||
. = name_to_material[key]
|
||||
if(!.)
|
||||
warning("Attempted to fetch material ref with invalid text id '[key]'")
|
||||
WARNING("Attempted to fetch material ref with invalid text id '[key]'")
|
||||
return
|
||||
|
||||
if(!ispath(key, /datum/material))
|
||||
@@ -152,7 +152,7 @@ var/list/name_to_material
|
||||
key = GetIdFromArguments(arguments)
|
||||
. = name_to_material[key]
|
||||
if(!.)
|
||||
warning("Attempted to fetch nonexistent material with key [key]")
|
||||
WARNING("Attempted to fetch nonexistent material with key [key]")
|
||||
|
||||
/** I'm not going to lie, this was swiped from [SSdcs][/datum/controller/subsystem/processing/dcs].
|
||||
* Credit does to ninjanomnom
|
||||
|
||||
Reference in New Issue
Block a user