mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
small fixes here and there
This commit is contained in:
parent
f081924670
commit
4a952f22d7
5 changed files with 31 additions and 46 deletions
|
@ -211,6 +211,12 @@ inline u8 face_contents(u8 m1, u8 m2)
|
|||
return 0;
|
||||
|
||||
bool contents_differ = (m1 != m2);
|
||||
|
||||
// Contents don't differ for different forms of same liquid
|
||||
if(content_liquid(m1) && content_liquid(m2)
|
||||
&& make_liquid_flowing(m1) == make_liquid_flowing(m2))
|
||||
contents_differ = false;
|
||||
|
||||
bool solidness_differs = (content_solidness(m1) != content_solidness(m2));
|
||||
bool makes_face = contents_differ && solidness_differs;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue