mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-22 20:35:24 +02:00
Remove redundant CollisionInfo::plane
This commit is contained in:
@@ -1196,7 +1196,7 @@ void LocalPlayer::handleAutojump(f32 dtime, Environment *env,
|
||||
|
||||
bool horizontal_collision = false;
|
||||
for (const auto &colinfo : result.collisions) {
|
||||
if (colinfo.type == COLLISION_NODE && colinfo.plane != 1) {
|
||||
if (colinfo.type == COLLISION_NODE && colinfo.axis != COLLISION_AXIS_Y) {
|
||||
horizontal_collision = true;
|
||||
break; // one is enough
|
||||
}
|
||||
|
Reference in New Issue
Block a user