From da7ee7e532a225772bde063dfbf95162b7b4ebf5 Mon Sep 17 00:00:00 2001 From: Jeremiah <42397676+jlsnow301@users.noreply.github.com> Date: Sun, 28 Dec 2025 16:02:39 -0800 Subject: [PATCH] Fixes search in crafting menu (#94623) ## About The Pull Request The frontend is expecting a recipe's requirements `reqs` to be an object, but it doesn't send it when there are none image This kills the tgui ## Why It's Good For The Game Fixes #94604 ## Changelog :cl: fix: Fixed a bluescreen in the personal crafting menu /:cl: --- code/datums/components/crafting/crafting.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/datums/components/crafting/crafting.dm b/code/datums/components/crafting/crafting.dm index c9e07d0d76a..5406d61f16e 100644 --- a/code/datums/components/crafting/crafting.dm +++ b/code/datums/components/crafting/crafting.dm @@ -677,8 +677,8 @@ data["structures"] += atoms.Find(req_atom) // Ingredients / Materials + data["reqs"] = list() if(recipe.reqs.len) - data["reqs"] = list() for(var/req_atom in recipe.reqs) var/id = atoms.Find(req_atom) data["reqs"]["[id]"] = recipe.reqs[req_atom]