Fixed track_players mod.
This commit is contained in:
parent
524fe451b1
commit
65caefaf85
|
@ -23,7 +23,7 @@ var geoJSONTmpl = template.Must(template.New("geojson").Parse(
|
|||
"coordinates": [{{.Z}}, {{.X}}]
|
||||
},
|
||||
"properties": {
|
||||
"name": "{{.Name | html }}"
|
||||
"name": "{{.Name | html }}"
|
||||
}
|
||||
}`))
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue