Created
November 16, 2013 15:32
-
-
Save PilzAdam/7501466 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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