Optimized minetest.get_connected_players()
authorfairiestoy <johannesvk@web.de>
Wed, 11 Sep 2013 14:59:48 +0000 (16:59 +0200)
committerKahrl <kahrl@gmx.net>
Tue, 1 Oct 2013 13:03:03 +0000 (15:03 +0200)
commit2170c9958a455c228459c795857ec1a890cd05c5
tree83e79810d6481fa2f80839e9882a330f948e1f03
parent2134316c8083274fb1c7645cbb1ceab745073e84
Optimized minetest.get_connected_players()

Instead of collecting all objects within a huge radius (which could be
a big value), just register each player that connects and give back the
current hold list.
builtin/misc.lua