summaryrefslogtreecommitdiff
path: root/src/nodedef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/nodedef.cpp')
-rw-r--r--src/nodedef.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp
index b26415168..b1ce7bbc8 100644
--- a/src/nodedef.cpp
+++ b/src/nodedef.cpp
@@ -213,6 +213,7 @@ void ContentFeatures::reset()
liquid_alternative_source = "";
liquid_viscosity = 0;
liquid_renewable = true;
+ liquid_range = LIQUID_LEVEL_MAX+1;
drowning = true;
light_source = 0;
damage_per_second = 0;
@@ -284,6 +285,7 @@ void ContentFeatures::serialize(std::ostream &os, u16 protocol_version)
// the protocol version
writeU8(os, drowning);
writeU8(os, leveled);
+ writeU8(os, liquid_range);
}
void ContentFeatures::deSerialize(std::istream &is)
@@ -350,6 +352,7 @@ void ContentFeatures::deSerialize(std::istream &is)
// otherwise changes the protocol version
drowning = readU8(is);
leveled = readU8(is);
+ liquid_range = readU8(is);
}catch(SerializationError &e) {};
}