1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Disable fall damage when "immortal" group set (#6946)

This commit is contained in:
lisacvuk 2018-01-23 19:28:21 +01:00 committed by SmallJoker
parent 04e5a65c65
commit 62c10e3d08
3 changed files with 15 additions and 2 deletions

View file

@ -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) {