aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-31 12:30:11 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-03-31 12:30:11 +0300
commit280e1a2512c71ef0d38643d8b245c40b285879ae (patch)
tree93b8517ea206e8ceaeeb57e7aca964fc24b35a99 /builtin
parent1518b8f7538aad3b64a2a8a4ddf285fd22469b94 (diff)
downloadminetest-280e1a2512c71ef0d38643d8b245c40b285879ae.tar.gz
minetest-280e1a2512c71ef0d38643d8b245c40b285879ae.tar.bz2
minetest-280e1a2512c71ef0d38643d8b245c40b285879ae.zip
Allow group:groupname in ABM definition and implement minetest.hash_node_position()
Diffstat (limited to 'builtin')
-rw-r--r--builtin/builtin.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/builtin/builtin.lua b/builtin/builtin.lua
index 7b39effb2..e529b7261 100644
--- a/builtin/builtin.lua
+++ b/builtin/builtin.lua
@@ -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