mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add liquid_range to nodedef
This commit is contained in:
parent
cba90d4441
commit
413f0d0353
6 changed files with 16 additions and 4 deletions
|
@ -2166,7 +2166,8 @@ void Map::transformLiquids(std::map<v3s16, MapBlock*> & modified_blocks)
|
|||
} else
|
||||
new_node_level = max_node_level;
|
||||
|
||||
if (new_node_level >= 0)
|
||||
u8 range = rangelim(nodemgr->get(liquid_kind).liquid_range, 0, LIQUID_LEVEL_MAX+1);
|
||||
if (new_node_level >= (LIQUID_LEVEL_MAX+1-range))
|
||||
new_node_content = liquid_kind;
|
||||
else
|
||||
new_node_content = CONTENT_AIR;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue