mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Remove redundant on_dieplayer calls
This commit is contained in:
parent
1d69a23ba4
commit
3f1adb49ae
5 changed files with 3 additions and 40 deletions
|
@ -200,8 +200,6 @@ void read_object_properties(lua_State *L, int index,
|
|||
if (prop->hp_max < sao->getHP()) {
|
||||
PlayerHPChangeReason reason(PlayerHPChangeReason::SET_HP);
|
||||
sao->setHP(prop->hp_max, reason);
|
||||
if (sao->getType() == ACTIVEOBJECT_TYPE_PLAYER)
|
||||
sao->getEnv()->getGameDef()->SendPlayerHPOrDie((PlayerSAO *)sao, reason);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue