[NO GBP] Another fix for ore silo logging interface (#92610)

## About The Pull Request
This adds null-checking in the Typescript itself to create values if
there are some missing, specifically with values that indicate that this
is replacing a value that was null as a result of an error. It also
updates another place where I forgot to correctly set user_data.

## Why It's Good For The Game
Fixes more bugs.

## Changelog
🆑 Bisar
fix: The .tsx code for Ore Silo logs will now catch nulls instead of
TBing.
fix: Fixed ANOTHER place where user_data for an ore silo log wasn't set
correctly.
/🆑
This commit is contained in:
Joshua Kidder
2025-09-08 15:38:28 -07:00
committed by GitHub
parent 632436f047
commit 4453412fe2
2 changed files with 7 additions and 7 deletions
@@ -390,7 +390,7 @@
. = ..()
if (.)
return
var/obj/item/card/id/advanced/user_card = astype(usr, /mob/living)?.get_idcard()
var/alist/user_data = ID_DATA(usr)
switch (action)
if ("print")
@@ -401,14 +401,14 @@
var/list/design = scanned_designs[design_id]
if (!materials.can_use_resource(user_card))
if (!materials.can_use_resource(user_data = user_data))
return TRUE
if (!materials.mat_container.has_materials(design["materials"], efficiency_coeff))
say("Not enough materials.")
return TRUE
materials.use_materials(design["materials"], efficiency_coeff, 1, "processed", design["name"], user_card)
materials.use_materials(design["materials"], efficiency_coeff, 1, design["name"], design["materials"], user_data = user_data)
print_module(design)
balloon_alert_to_viewers("printed [design["name"]]")
if ("remove_mat")