Add support for recent MapBlock serialization changes

This commit is contained in:
sfan5 2017-02-17 15:28:01 +01:00
parent 07c371f68c
commit 21444d00c3

@ -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;