1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-15 18:57:08 +00:00

Make the player collisionbox settable

This commit is contained in:
TeTpaAka 2015-05-29 20:30:55 +02:00 committed by ShadowNinja
parent 43d1f375d1
commit b6f4a9c7e1
4 changed files with 14 additions and 2 deletions

View file

@ -1585,7 +1585,13 @@ void GenericCAO::processMessage(const std::string &data)
}
if (m_is_local_player) {
LocalPlayer *player = m_env->getLocalPlayer();
player->makes_footstep_sound = m_prop.makes_footstep_sound;
aabb3f collisionbox = m_selection_box;
collisionbox.MinEdge += v3f(0, BS, 0);
collisionbox.MaxEdge += v3f(0, BS, 0);
player->setCollisionbox(collisionbox);
}
if ((m_is_player && !m_is_local_player) && m_prop.nametag == "")