1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

minetest.get_node_group(name, group)

This commit is contained in:
Perttu Ahola 2012-04-08 18:34:05 +03:00
parent e29a5b11e4
commit 2b4d21160f
2 changed files with 9 additions and 0 deletions

View file

@ -55,4 +55,11 @@ function minetest.hash_node_position(pos)
return (pos.z+32768)*65536*65536 + (pos.y+32768)*65536 + pos.x+32768
end
function minetest.get_node_group(name, group)
if not minetest.registered_nodes[name] or not
minetest.registered_nodes[name].groups[group] then
return 0
end
return minetest.registered_nodes[name].groups[group]
end