mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
better water
This commit is contained in:
parent
4a8973aeac
commit
38353751c9
11 changed files with 167 additions and 16 deletions
|
@ -145,9 +145,9 @@ void MovingObject::move(float dtime, v3f acceleration)
|
|||
for(s16 x = oldpos_i.X - 1; x <= oldpos_i.X + 1; x++)
|
||||
{
|
||||
try{
|
||||
if(m_block->getNodeParent(v3s16(x,y,z)).d == MATERIAL_AIR){
|
||||
if(material_walkable(m_block->getNodeParent(v3s16(x,y,z)).d)
|
||||
== false)
|
||||
continue;
|
||||
}
|
||||
}
|
||||
catch(InvalidPositionException &e)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue