Skip to content

Commit

Permalink
Fix incorrect docs about minetest.hud_replace_builtin (#4833)
Browse files Browse the repository at this point in the history
Fixes #4832
  • Loading branch information
Amaz1 authored and est31 committed Dec 2, 2016
1 parent 144da5f commit 8b63fbe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/lua_api.txt
Expand Up @@ -2576,6 +2576,10 @@ These functions return the leftover itemstack.

### Misc.
* `minetest.get_connected_players()`: returns list of `ObjectRefs`
* `minetest.hud_replace_builtin(name, hud_definition)`
* Replaces definition of a builtin hud element
* `name`: `"breath"` or `"health"`
* `hud_definition`: definition to replace builtin definition
* `minetest.hash_node_position({x=,y=,z=})`: returns an 48-bit integer
* Gives a unique hash number for a node position (16+16+16=48bit)
* `minetest.get_position_from_hash(hash)`: returns a position
Expand Down Expand Up @@ -2901,10 +2905,6 @@ This is basically a reference to a C++ `ServerActiveObject`
* `hud_set_hotbar_selected_image(texturename)`
* sets image for selected item of hotbar
* `hud_get_hotbar_selected_image`: returns texturename
* `hud_replace_builtin(name, hud_definition)`
* replace definition of a builtin hud element
* `name`: `"breath"` or `"health"`
* `hud_definition`: definition to replace builtin definition
* `set_sky(bgcolor, type, {texture names})`
* `bgcolor`: ColorSpec, defaults to white
* Available types:
Expand Down

0 comments on commit 8b63fbe

Please sign in to comment.