mirror of
https://github.com/minetest/minetest.git
synced 2024-09-27 15:00:30 +02:00
Fix head shifting down in nodeboxes/glass/etc
This commit is contained in:
parent
0eb2df807f
commit
5aade982fe
|
@ -323,7 +323,7 @@ void LocalPlayer::move(f32 dtime, Map &map, f32 pos_max_d,
|
||||||
v3s16 camera_np = floatToInt(getEyePosition(), BS);
|
v3s16 camera_np = floatToInt(getEyePosition(), BS);
|
||||||
MapNode n = map.getNodeNoEx(camera_np);
|
MapNode n = map.getNodeNoEx(camera_np);
|
||||||
if(n.getContent() != CONTENT_IGNORE){
|
if(n.getContent() != CONTENT_IGNORE){
|
||||||
if(nodemgr->get(n).walkable){
|
if(nodemgr->get(n).walkable && nodemgr->get(n).solidness == 2){
|
||||||
camera_barely_in_ceiling = true;
|
camera_barely_in_ceiling = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user