diff options
author | Jude Melton-Houghton <jwmhjwmh@gmail.com> | 2022-10-18 18:03:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-18 18:03:05 -0400 |
commit | dafdb3edb4b65db144d72cd2274a657af671bdd1 (patch) | |
tree | 8234b9b09c311b05bf2a42c48ca9c1082164aae3 /src/nodedef.cpp | |
parent | b38ffdec279bcded98e34f5116c8d676aa9f73a7 (diff) | |
download | minetest-dafdb3edb4b65db144d72cd2274a657af671bdd1.tar.xz |
Check for falling `float` nodes in liquid transform (#12862)
Diffstat (limited to 'src/nodedef.cpp')
-rw-r--r-- | src/nodedef.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp index e5f056807..607107264 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -1393,6 +1393,7 @@ content_t NodeDefManager::set(const std::string &name, const ContentFeatures &de eraseIdFromGroups(id); m_content_features[id] = def; + m_content_features[id].floats = itemgroup_get(def.groups, "float") != 0; m_content_lighting_flag_cache[id] = def.getLightingFlags(); verbosestream << "NodeDefManager: registering content id \"" << id << "\": name=\"" << def.name << "\""<<std::endl; @@ -1606,6 +1607,7 @@ void NodeDefManager::deSerialize(std::istream &is, u16 protocol_version) if (i >= m_content_features.size()) m_content_features.resize((u32)(i) + 1); m_content_features[i] = f; + m_content_features[i].floats = itemgroup_get(f.groups, "float") != 0; m_content_lighting_flag_cache[i] = f.getLightingFlags(); addNameIdMapping(i, f.name); TRACESTREAM(<< "NodeDef: deserialized " << f.name << std::endl); |