mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-16 18:01:40 +00:00
Make add_entity return a reference to added entity (or nil)
This commit is contained in:
parent
cb88f7b6d4
commit
49b7055cb3
2 changed files with 8 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue