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:
parent
04e5a65c65
commit
62c10e3d08
3 changed files with 15 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue