Implement vector and node conversion in Lua (#12609)
Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
committed by
GitHub
parent
23e9f5db43
commit
b38ffdec27
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user