mirror of https://github.com/minetest/minetest.git
Fix glitch ladders
This commit is contained in:
parent
8eb717d4d0
commit
c469897606
|
@ -268,7 +268,8 @@ void LocalPlayer::move(f32 dtime, Map &map, f32 pos_max_d,
|
||||||
if(nodemgr->get(map.getNode(p)).walkable == false)
|
if(nodemgr->get(map.getNode(p)).walkable == false)
|
||||||
continue;
|
continue;
|
||||||
// And the node above it has to be nonwalkable
|
// And the node above it has to be nonwalkable
|
||||||
if(nodemgr->get(map.getNode(p+v3s16(0,1,0))).walkable == true)
|
if(nodemgr->get(map.getNode(p+v3s16(0,1,0))).walkable ||
|
||||||
|
nodemgr->get(map.getNode(p+v3s16(0,2,0))).walkable)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
catch(InvalidPositionException &e)
|
catch(InvalidPositionException &e)
|
||||||
|
|
Loading…
Reference in New Issue