summaryrefslogtreecommitdiff
path: root/src/mapnode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapnode.cpp')
-rw-r--r--src/mapnode.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mapnode.cpp b/src/mapnode.cpp
index c616e0117..5dab93754 100644
--- a/src/mapnode.cpp
+++ b/src/mapnode.cpp
@@ -234,8 +234,10 @@ u32 MapNode::serializedLength(u8 version)
return 1;
else if(version <= 9)
return 2;
- else
+ else if(version <= 23)
return 3;
+ else
+ return 4;
}
void MapNode::serialize(u8 *dest, u8 version)
{