mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Allow group:groupname in ABM definition and implement minetest.hash_node_position()
This commit is contained in:
parent
1518b8f753
commit
280e1a2512
5 changed files with 54 additions and 15 deletions
|
@ -861,6 +861,14 @@ function minetest.get_connected_players()
|
|||
return list
|
||||
end
|
||||
|
||||
function minetest.hash_node_position(pos)
|
||||
return (pos.z+32768)*65536*65536 + (pos.y+32768)*65536 + pos.x+32768
|
||||
end
|
||||
|
||||
--
|
||||
-- Privileges
|
||||
--
|
||||
|
||||
minetest.registered_privileges = {}
|
||||
function minetest.register_privilege(name, description)
|
||||
minetest.registered_privileges[name] = description
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue