mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2024-11-15 14:50:21 +01:00
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}}]
|
"coordinates": [{{.Z}}, {{.X}}]
|
||||||
},
|
},
|
||||||
"properties": {
|
"properties": {
|
||||||
"name": "{{.Name | html }}"
|
"name": "{{.Name | html }}"
|
||||||
}
|
}
|
||||||
}`))
|
}`))
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,9 @@ function players_data()
|
||||||
z = pos.z }
|
z = pos.z }
|
||||||
table.insert(ps, data)
|
table.insert(ps, data)
|
||||||
end
|
end
|
||||||
|
if table.getn(ps) == 0 then
|
||||||
|
return '[]\n'
|
||||||
|
end
|
||||||
return minetest.write_json(ps) .. '\n'
|
return minetest.write_json(ps) .. '\n'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user