Fixed track_players mod.

This commit is contained in:
Sascha L. Teichmann 2015-03-10 12:57:00 +01:00
parent 524fe451b1
commit 65caefaf85
2 changed files with 4 additions and 1 deletions

View File

@ -13,6 +13,9 @@ function players_data()
z = pos.z }
table.insert(ps, data)
end
if table.getn(ps) == 0 then
return '[]\n'
end
return minetest.write_json(ps) .. '\n'
end