mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Implement vector and node conversion in Lua (#12609)
Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
parent
23e9f5db43
commit
b38ffdec27
29 changed files with 191 additions and 167 deletions
|
@ -220,7 +220,7 @@ int ModApiClient::l_get_node_or_nil(lua_State *L)
|
|||
MapNode n = getClient(L)->CSMGetNode(pos, &pos_ok);
|
||||
if (pos_ok) {
|
||||
// Return node
|
||||
pushnode(L, n, getClient(L)->ndef());
|
||||
pushnode(L, n);
|
||||
} else {
|
||||
lua_pushnil(L);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue