]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - builtin/client/util.lua
Add minetest.get_nearby_objects
[dragonfireclient.git] / builtin / client / util.lua
index e85727436a42900ee53f12516e663e91becf50f3..aea15e00ff59dc83789d203c4f28fb5f2d123f98 100644 (file)
@@ -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