Browse Source

Update README.md and fix typo

master
luk3yx 4 weeks ago
parent
commit
cf877bae5f
2 changed files with 3 additions and 1 deletions
  1. 2
    0
      README.md
  2. 1
    1
      forms.lua

+ 2
- 0
README.md View File

@@ -30,6 +30,8 @@ More documentation coming soon.
- `snippets.exec(code)`: Executes `code` inside a generic snippet.
- `snippets.run(name, ...)`: Executes a snippet.
- `snippets.Form(player_or_name)`: Creates a form.
- `snippets.close_form(player_or_name)`: Closes `player_or_name`'s currently
open form.

### Forms


+ 1
- 1
forms.lua View File

@@ -135,7 +135,7 @@ function snippets.Form(name)
return form
end

function snippets.close_form(name, callbacks)
function snippets.close_form(name)
if minetest.is_player(name) then name = name:get_player_name() end
if open_formspecs[name] then open_formspecs[name]:close() end
end

Loading…
Cancel
Save