mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-16 18:01:40 +00:00
Make liquid_alternative_* to be strings
This commit is contained in:
parent
18bb0ea1ea
commit
e5650bb549
6 changed files with 33 additions and 32 deletions
|
@ -237,8 +237,8 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
|
|||
|
||||
bool top_is_same_liquid = false;
|
||||
MapNode ntop = data->m_vmanip.getNodeNoEx(blockpos_nodes + v3s16(x,y+1,z));
|
||||
content_t c_flowing = nodedef->get(n).liquid_alternative_flowing;
|
||||
content_t c_source = nodedef->get(n).liquid_alternative_source;
|
||||
content_t c_flowing = nodedef->getId(nodedef->get(n).liquid_alternative_flowing);
|
||||
content_t c_source = nodedef->getId(nodedef->get(n).liquid_alternative_source);
|
||||
if(ntop.getContent() == c_flowing || ntop.getContent() == c_source)
|
||||
top_is_same_liquid = true;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue