Skip to content

Commit

Permalink
Add support for recent MapBlock serialization changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Feb 17, 2017
1 parent 07c371f commit 21444d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion TileGenerator.cpp
Expand Up @@ -394,7 +394,9 @@ void TileGenerator::renderMap()
//uint8_t flags = data[1];

size_t dataOffset = 0;
if (version >= 22)
if (version >= 27)
dataOffset = 6;
else if (version >= 22)
dataOffset = 4;
else
dataOffset = 2;
Expand Down

0 comments on commit 21444d0

Please sign in to comment.