From 5914da33346b0483db8083599873811482fba307 Mon Sep 17 00:00:00 2001 From: alek13 Date: Mon, 10 Mar 2025 10:33:08 +0300 Subject: [PATCH] `ide-helper`: add `@return` notation for `minetest.get_objects_in_area`. --- minetest_ns.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/minetest_ns.lua b/minetest_ns.lua index 022bf1b..7f00ae4 100644 --- a/minetest_ns.lua +++ b/minetest_ns.lua @@ -952,13 +952,16 @@ function minetest.get_player_by_name(name) end --- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L4914-L4916) --- @param pos Position --- @param radius number ---- @return ObjectRef[] +--- @return ObjectRef[]|Entity[]|Player[] function minetest.get_objects_inside_radius(pos, radius) end --- Returns a list of --- ObjectRefs. --- * `pos1` and `pos2` are the min and max positions of the area to search. --- --- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L4917-L4919) +--- @param pos1 Position +--- @param pos2 Position +--- @return ObjectRef[]|Entity[]|Player[] function minetest.get_objects_in_area(pos1, pos2) end --- * `val` is between `0` and `1`; `0` for midnight, `0.5` for midday ---