Skip to content

Commit

Permalink
Clarified what get_node does.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertZenz authored and paramat committed Jan 9, 2016
1 parent 95c1b66 commit 386d190
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions doc/lua_api.txt
Expand Up @@ -1958,9 +1958,11 @@ and `minetest.auth_reload` call the authetification handler.
* `minetest.remove_node(pos)`
* Equivalent to `set_node(pos, "air")`
* `minetest.get_node(pos)`
* Returns `{name="ignore", ...}` for unloaded area
* Returns the node at the given position as table in the format
`{name="node_name", param1=0, param2=0}`, returns `{name="ignore", param1=0, param2=0}`
for unloaded areas.
* `minetest.get_node_or_nil(pos)`
* Returns `nil` for unloaded area
* Same as `get_node` but returns `nil` for unloaded areas.
* `minetest.get_node_light(pos, timeofday)`
* Gets the light value at the given position. Note that the light value
"inside" the node at the given position is returned, so you usually want
Expand Down

1 comment on commit 386d190

@HybridDog
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does minetest.get_node_or_nil work faster?

Please sign in to comment.