Модуль:IanComradeBot/prototypes/lathe/recipe pack.json/data: различия между версиями
Pok (обсуждение | вклад) Новая страница: «local title = mw.title.new("Участник:IanComradeBot/prototypes/recipe pack.json") local jsonData = title and title:getContent() or "" local success, data = pcall(mw.text.jsonDecode, jsonData) return (success and type(data) == "table") and data or {}» |
Pok (обсуждение | вклад) Нет описания правки |
||
| Строка 1: | Строка 1: | ||
local title = mw.title.new("Участник:IanComradeBot/prototypes/recipe pack.json") | local title = mw.title.new("Участник:IanComradeBot/prototypes/lathe/recipe pack.json") | ||
local jsonData = title and title:getContent() or "" | local jsonData = title and title:getContent() or "" | ||
local success, data = pcall(mw.text.jsonDecode, jsonData) | local success, data = pcall(mw.text.jsonDecode, jsonData) | ||
return (success and type(data) == "table") and data or {} | return (success and type(data) == "table") and data or {} | ||