mirror of
https://github.com/minetest-mods/i3.git
synced 2024-12-26 02:40:38 +01:00
Rename some API functions
This commit is contained in:
parent
34841eddf3
commit
7820d88a30
4
API.md
4
API.md
@ -38,7 +38,7 @@ i3.new_tab {
|
||||
|
||||
Updates the current formspec. `extra_formspec` adds an additional formspec string.
|
||||
|
||||
#### `i3.delete_tab(tabname)`
|
||||
#### `i3.remove_tab(tabname)`
|
||||
|
||||
Deletes a tab by name.
|
||||
|
||||
@ -178,7 +178,7 @@ end)
|
||||
|
||||
Removes all recipe filters and adds a new one.
|
||||
|
||||
#### `i3.delete_recipe_filter(name)`
|
||||
#### `i3.remove_recipe_filter(name)`
|
||||
|
||||
Removes the recipe filter with the given `name`.
|
||||
|
||||
|
6
init.lua
6
init.lua
@ -426,7 +426,7 @@ function i3.set_recipe_filter(name, f)
|
||||
recipe_filters = {[name] = f}
|
||||
end
|
||||
|
||||
function i3.delete_recipe_filter(name)
|
||||
function i3.remove_recipe_filter(name)
|
||||
recipe_filters[name] = nil
|
||||
end
|
||||
|
||||
@ -2224,9 +2224,9 @@ function i3.get_tabs()
|
||||
return tabs
|
||||
end
|
||||
|
||||
function i3.delete_tab(tabname)
|
||||
function i3.remove_tab(tabname)
|
||||
if not true_str(tabname) then
|
||||
return err "i3.delete_tab: tab name missing"
|
||||
return err "i3.remove_tab: tab name missing"
|
||||
end
|
||||
|
||||
for i, def in ipairs(tabs) do
|
||||
|
Loading…
Reference in New Issue
Block a user