mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Allow "liquid" and "flowingliquid" drawtypes even if liquidtype=none (#10737)
This commit is contained in:
parent
eb8af614a5
commit
7f25823bd4
5 changed files with 55 additions and 66 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue