diff options
Diffstat (limited to '')
-rw-r--r-- | src/WorldStorage/NBTChunkSerializer.cpp | 2 | ||||
-rw-r--r-- | src/WorldStorage/WSSAnvil.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/WorldStorage/NBTChunkSerializer.cpp b/src/WorldStorage/NBTChunkSerializer.cpp index 7ce85616c..e96acccef 100644 --- a/src/WorldStorage/NBTChunkSerializer.cpp +++ b/src/WorldStorage/NBTChunkSerializer.cpp @@ -1252,7 +1252,7 @@ void NBTChunkSerializer::Serialize(const cWorld & aWorld, cChunkCoords aCoords, } // Save the world age to the chunk data. Required by vanilla and mcedit. - aWriter.AddLong("LastUpdate", aWorld.GetWorldAge()); + aWriter.AddLong("LastUpdate", aWorld.GetWorldAge().count()); // Store the flag that the chunk has all the ores, trees, dungeons etc. Cuberite chunks are always complete. aWriter.AddByte("TerrainPopulated", 1); diff --git a/src/WorldStorage/WSSAnvil.cpp b/src/WorldStorage/WSSAnvil.cpp index dae1ca825..18c4f13b6 100644 --- a/src/WorldStorage/WSSAnvil.cpp +++ b/src/WorldStorage/WSSAnvil.cpp @@ -109,8 +109,8 @@ cWSSAnvil::cWSSAnvil(cWorld * a_World, int a_CompressionFactor) : Writer.AddInt("SpawnY", FloorC(a_World->GetSpawnY())); Writer.AddInt("SpawnZ", FloorC(a_World->GetSpawnZ())); Writer.AddInt("version", 19133); - Writer.AddLong("DayTime", a_World->GetTimeOfDay()); - Writer.AddLong("Time", a_World->GetWorldAge()); + Writer.AddLong("DayTime", a_World->GetWorldDate().count()); + Writer.AddLong("Time", a_World->GetWorldAge().count()); Writer.AddLong("SizeOnDisk", 0); Writer.AddString("generatorName", "default"); Writer.AddString("generatorOptions", ""); |