1
0
Fork 0
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:
Perttu Ahola 2010-11-30 15:35:03 +02:00
parent 4a8973aeac
commit 38353751c9
11 changed files with 167 additions and 16 deletions

View file

@ -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)
{