Fixes small errors in handling players detection in mtwebmapper.

This commit is contained in:
Sascha L. Teichmann
2015-03-10 12:49:10 +01:00
parent d242fb5cf1
commit 524fe451b1
2 changed files with 7 additions and 2 deletions

View File

@ -2,7 +2,7 @@ local time_interval = 1.0
local fifo_path = "/tmp/mt_players_fifo"
function players_data()
ps = {}
local ps = {}
for _, player in ipairs(minetest.get_connected_players()) do
local pos = player:getpos()
local pname = player:get_player_name()