diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-02-02 18:33:21 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-02-02 18:33:21 +0100 |
commit | 34857eabbcaea2344fe7912f96fbd7f854c37e1b (patch) | |
tree | 9603f90b3cba412b2d0de321b7cbc8e6c4012fd4 /src/Info.cpp | |
parent | db59b7385621a271684c3be5f20618d74e631dda (diff) | |
download | MinedMap-34857eabbcaea2344fe7912f96fbd7f854c37e1b.tar MinedMap-34857eabbcaea2344fe7912f96fbd7f854c37e1b.zip |
Add spawn coordinates
Diffstat (limited to 'src/Info.cpp')
-rw-r--r-- | src/Info.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Info.cpp b/src/Info.cpp index 7b411f7..530d6b2 100644 --- a/src/Info.cpp +++ b/src/Info.cpp @@ -68,7 +68,11 @@ void Info::writeJSON(const char *filename) { fprintf(f, "]\n"); } - fprintf(f, " ]\n"); + fprintf(f, " ],\n"); + fprintf(f, " \"spawn\" : {\n"); + fprintf(f, " \"x\" : %li,\n", (long)spawnX); + fprintf(f, " \"z\" : %li\n", (long)spawnZ); + fprintf(f, " }\n"); fprintf(f, "}\n"); fclose(f); |