1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add asserts

This commit is contained in:
grorp 2025-06-10 14:02:25 +02:00
parent 438abc7626
commit 9b65d4eb98

View file

@ -197,12 +197,14 @@ local function get_formspec(data)
}) })
elseif current_tab == 2 then elseif current_tab == 2 then
assert(info)
local hypertext = info.info_hypertext.head .. info.info_hypertext.body local hypertext = info.info_hypertext.head .. info.info_hypertext.body
table.insert_all(formspec, { table.insert_all(formspec, {
"hypertext[0,0;", W, ",", tab_body_height - 0.375, "hypertext[0,0;", W, ",", tab_body_height - 0.375,
";info;", core.formspec_escape(hypertext), "]", ";info;", core.formspec_escape(hypertext), "]",
}) })
elseif current_tab == 3 then elseif current_tab == 3 then
assert(info)
if not package.reviews and not data.reviews_error and not data.reviews_loading then if not package.reviews and not data.reviews_error and not data.reviews_loading then
data.reviews_loading = true data.reviews_loading = true