aboutsummaryrefslogtreecommitdiff
path: root/data/mods
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-01-02 12:48:25 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-01-02 12:48:25 +0200
commit49b7055cb3f676c19dc5edd07fe72e2f5e2414a1 (patch)
tree45dbd52a817425dae864273f217316d5a929e96e /data/mods
parentcb88f7b6d4c863e9ae986df14a457dc8355830cb (diff)
downloadminetest-49b7055cb3f676c19dc5edd07fe72e2f5e2414a1.tar.gz
minetest-49b7055cb3f676c19dc5edd07fe72e2f5e2414a1.tar.bz2
minetest-49b7055cb3f676c19dc5edd07fe72e2f5e2414a1.zip
Make add_entity return a reference to added entity (or nil)
Diffstat (limited to 'data/mods')
-rw-r--r--data/mods/default/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua
index 47bdafd71..9c1ce4ef8 100644
--- a/data/mods/default/init.lua
+++ b/data/mods/default/init.lua
@@ -152,7 +152,7 @@
-- ^ Returns nil for unloaded area
-- - get_node_light(pos, timeofday) -> 0...15 or nil
-- ^ timeofday: nil = current time, 0 = night, 0.5 = day
--- - add_entity(pos, name)
+-- - add_entity(pos, name): Returns ObjectRef or nil if failed
-- - add_item(pos, itemstring)
-- - add_rat(pos)
-- - add_firefly(pos)