mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-09 03:25:28 +01:00
Disable fall damage when "immortal" group set (#6946)
This commit is contained in:
@@ -360,6 +360,11 @@ v3f GenericCAO::getPosition()
|
||||
return pos_translator.vect_show;
|
||||
}
|
||||
|
||||
const bool GenericCAO::isImmortal()
|
||||
{
|
||||
return itemgroup_get(getGroups(), "immortal");
|
||||
}
|
||||
|
||||
scene::ISceneNode* GenericCAO::getSceneNode()
|
||||
{
|
||||
if (m_meshnode) {
|
||||
|
||||
Reference in New Issue
Block a user