diff options
author | Wuzzy <wuzzy2@mail.ru> | 2021-01-21 00:51:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-21 00:51:24 +0100 |
commit | 7f25823bd4f1a822449eb783ee555651a89ce9de (patch) | |
tree | a0fae739e61cc60ff14531df409638fc8b4d5f5a /src/nodedef.cpp | |
parent | eb8af614a5ee876a2bc9312506bfcfda20501232 (diff) | |
download | minetest-7f25823bd4f1a822449eb783ee555651a89ce9de.tar.gz minetest-7f25823bd4f1a822449eb783ee555651a89ce9de.tar.bz2 minetest-7f25823bd4f1a822449eb783ee555651a89ce9de.zip |
Allow "liquid" and "flowingliquid" drawtypes even if liquidtype=none (#10737)
Diffstat (limited to 'src/nodedef.cpp')
-rw-r--r-- | src/nodedef.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp index f9d15a9f6..1740b010a 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -788,14 +788,12 @@ void ContentFeatures::updateTextures(ITextureSource *tsrc, IShaderSource *shdsrc solidness = 0; break; case NDT_LIQUID: - assert(liquid_type == LIQUID_SOURCE); if (tsettings.opaque_water) alpha = 255; solidness = 1; is_liquid = true; break; case NDT_FLOWINGLIQUID: - assert(liquid_type == LIQUID_FLOWING); solidness = 0; if (tsettings.opaque_water) alpha = 255; @@ -1596,7 +1594,7 @@ static void removeDupes(std::vector<content_t> &list) void NodeDefManager::resolveCrossrefs() { for (ContentFeatures &f : m_content_features) { - if (f.liquid_type != LIQUID_NONE) { + if (f.liquid_type != LIQUID_NONE || f.drawtype == NDT_LIQUID || f.drawtype == NDT_FLOWINGLIQUID) { f.liquid_alternative_flowing_id = getId(f.liquid_alternative_flowing); f.liquid_alternative_source_id = getId(f.liquid_alternative_source); continue; |