mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add liquid_renewable property.
This commit is contained in:
parent
9696ed31a4
commit
926830e0df
5 changed files with 10 additions and 2 deletions
|
@ -203,6 +203,7 @@ void ContentFeatures::reset()
|
|||
liquid_alternative_flowing = "";
|
||||
liquid_alternative_source = "";
|
||||
liquid_viscosity = 0;
|
||||
liquid_renewable = true;
|
||||
light_source = 0;
|
||||
damage_per_second = 0;
|
||||
node_box = NodeBox();
|
||||
|
@ -253,6 +254,7 @@ void ContentFeatures::serialize(std::ostream &os)
|
|||
os<<serializeString(liquid_alternative_flowing);
|
||||
os<<serializeString(liquid_alternative_source);
|
||||
writeU8(os, liquid_viscosity);
|
||||
writeU8(os, liquid_renewable);
|
||||
writeU8(os, light_source);
|
||||
writeU32(os, damage_per_second);
|
||||
node_box.serialize(os);
|
||||
|
@ -307,6 +309,7 @@ void ContentFeatures::deSerialize(std::istream &is)
|
|||
liquid_alternative_flowing = deSerializeString(is);
|
||||
liquid_alternative_source = deSerializeString(is);
|
||||
liquid_viscosity = readU8(is);
|
||||
liquid_renewable = readU8(is);
|
||||
light_source = readU8(is);
|
||||
damage_per_second = readU32(is);
|
||||
node_box.deSerialize(is);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue