minetest.get_node_group(name, group)
This commit is contained in:
parent
7d9d0bc397
commit
ed35ccceb4
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue