mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-21 12:08:55 +01:00
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 <img width="415" height="102" alt="image" src="https://github.com/user-attachments/assets/b4c453e6-6d17-4733-bfe2-3e44153d7962" /> This kills the tgui ## Why It's Good For The Game Fixes #94604 ## Changelog 🆑 fix: Fixed a bluescreen in the personal crafting menu /🆑
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user