aboutsummaryrefslogtreecommitdiff
path: root/builtin/client/util.lua
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-01-07 16:04:06 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-01-07 16:04:06 +0100
commit19e0528e331d663044c10341f88d5edfc67d4e8b (patch)
treecedaa8635e1015b80832c93ae2061fc427c9ead5 /builtin/client/util.lua
parent47d0882cce83a03e0ca22cecdea16e6a09ed7afb (diff)
downloaddragonfireclient-19e0528e331d663044c10341f88d5edfc67d4e8b.tar.xz
Add minetest.get_nearby_objects
Diffstat (limited to 'builtin/client/util.lua')
-rw-r--r--builtin/client/util.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/builtin/client/util.lua b/builtin/client/util.lua
index e85727436..aea15e00f 100644
--- a/builtin/client/util.lua
+++ b/builtin/client/util.lua
@@ -54,3 +54,7 @@ end
function core.close_formspec(formname)
return core.show_formspec(formname, "")
end
+
+function core.get_nearby_objects(radius)
+ return core.get_objects_inside_radius(core.localplayer:get_pos(), radius)
+end