summaryrefslogtreecommitdiff
path: root/src/script/common/c_content.cpp
diff options
context:
space:
mode:
authorsavilli <78875209+savilli@users.noreply.github.com>2021-08-28 12:14:16 +0200
committerGitHub <noreply@github.com>2021-08-28 12:14:16 +0200
commit3f1adb49ae8da5bb02bea52609524d3645b6a665 (patch)
tree43bebf8149ef9f83a1d3c79579e7ba6453e414ab /src/script/common/c_content.cpp
parent1d69a23ba48d99b051dcf2a6be225edd7c644c7b (diff)
downloadminetest-3f1adb49ae8da5bb02bea52609524d3645b6a665.tar.gz
minetest-3f1adb49ae8da5bb02bea52609524d3645b6a665.tar.bz2
minetest-3f1adb49ae8da5bb02bea52609524d3645b6a665.zip
Remove redundant on_dieplayer calls
Diffstat (limited to 'src/script/common/c_content.cpp')
-rw-r--r--src/script/common/c_content.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/script/common/c_content.cpp b/src/script/common/c_content.cpp
index f13287375..5a095fd8f 100644
--- a/src/script/common/c_content.cpp
+++ b/src/script/common/c_content.cpp
@@ -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);
}
}