API Cleanup

This commit is contained in:
Jean-Patrick Guerrero
2021-10-19 03:56:37 +02:00
parent 853ddc9d94
commit 8cd04deff4
4 changed files with 14 additions and 27 deletions

View File

@ -184,8 +184,7 @@ local function get_formspec_version(info)
end
local function outdated(name)
local fs = fmt("size[6.3,1.3]image[0,0;1,1;%s]label[1,0;%s]button_exit[2.6,0.8;1,1;;OK]",
"i3_book.png",
local fs = fmt("size[6.3,1.3]image[0,0;1,1;i3_book.png]label[1,0;%s]button_exit[2.6,0.8;1,1;;OK]",
"Your Minetest client is outdated.\nGet the latest version on minetest.net to play the game.")
core.show_formspec(name, "i3_outdated", fs)
@ -338,10 +337,6 @@ function i3.set_recipe_filter(name, f)
i3.recipe_filters = {[name] = f}
end
function i3.remove_recipe_filter(name)
i3.recipe_filters[name] = nil
end
function i3.add_search_filter(name, f)
if not true_str(name) then
return err "i3.add_search_filter: name missing"