From 50a8087684cb9cdee033053c01a6e51eb516565b Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 11 Apr 2011 16:58:49 +0300 Subject: support for format 0 and 1 maps --- src/mapblock.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mapblock.cpp') diff --git a/src/mapblock.cpp b/src/mapblock.cpp index 377e28435..38c081eec 100644 --- a/src/mapblock.cpp +++ b/src/mapblock.cpp @@ -1936,6 +1936,12 @@ void MapBlock::deSerialize(std::istream &is, u8 version) if(!ser_ver_supported(version)) throw VersionMismatchException("ERROR: MapBlock format not supported"); + // These have no lighting info + if(version <= 1) + { + setLightingExpired(true); + } + // These have no compression if(version <= 3 || version == 5 || version == 6) { -- cgit v1.2.3