Fixed security issue

Fixed a security issue, where modders would be able to manipulate the
internal player table
This commit is contained in:
fairiestoy 2013-09-13 15:39:37 +02:00
parent f12f74c99d
commit bfabc52841
1 changed files with 5 additions and 1 deletions

View File

@ -57,7 +57,11 @@ minetest.register_on_leaveplayer( function( player_ref )
end)
function minetest.get_connected_players()
return player_list
local temp_table = {}
for index, value in pairs( player_list ) do
table.insert( temp_table, value )
end
return temp_table
end
function minetest.hash_node_position(pos)