mirror of
https://github.com/minetest/minetest.git
synced 2025-07-04 08:50:22 +02:00
Make the player collisionbox settable
This commit is contained in:
@ -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 == "")
|
||||
|
Reference in New Issue
Block a user