Skip to content

Instantly share code, notes, and snippets.

@PilzAdam
Created November 16, 2013 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PilzAdam/7501466 to your computer and use it in GitHub Desktop.
Save PilzAdam/7501466 to your computer and use it in GitHub Desktop.
diff --git a/builtin/misc.lua b/builtin/misc.lua
index a6a1718..6ffb25e 100644
--- a/builtin/misc.lua
+++ b/builtin/misc.lua
@@ -53,7 +53,9 @@ end)
function minetest.get_connected_players()
local temp_table = {}
for index, value in pairs(player_list) do
- table.insert(temp_table, value)
+ if value:is_player() then
+ table.insert(temp_table, value)
+ end
end
return temp_table
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment