diff options
author | Rorkh <rorkh@internet.ru> | 2021-09-18 10:18:05 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2021-10-02 22:18:18 +0200 |
commit | 798fdb07092fceaccfde41d2f27e2756f29f4eda (patch) | |
tree | aaa7f6bd1be6a33e08be230bda3166b31a2b57a2 /src/Entities/Entity.cpp | |
parent | Spectation: add dedicated pathway for spectator mode (#5303) (diff) | |
download | cuberite-798fdb07092fceaccfde41d2f27e2756f29f4eda.tar cuberite-798fdb07092fceaccfde41d2f27e2756f29f4eda.tar.gz cuberite-798fdb07092fceaccfde41d2f27e2756f29f4eda.tar.bz2 cuberite-798fdb07092fceaccfde41d2f27e2756f29f4eda.tar.lz cuberite-798fdb07092fceaccfde41d2f27e2756f29f4eda.tar.xz cuberite-798fdb07092fceaccfde41d2f27e2756f29f4eda.tar.zst cuberite-798fdb07092fceaccfde41d2f27e2756f29f4eda.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Entity.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp index a5b1fae8f..74b184c54 100644 --- a/src/Entities/Entity.cpp +++ b/src/Entities/Entity.cpp @@ -396,7 +396,7 @@ bool cEntity::DoTakeDamage(TakeDamageInfo & a_TDI) if (a_TDI.Attacker != nullptr) { - a_TDI.Attacker->Killed(this); + a_TDI.Attacker->Killed(*this, a_TDI.DamageType); } return true; @@ -570,7 +570,7 @@ bool cEntity::DoTakeDamage(TakeDamageInfo & a_TDI) if (a_TDI.Attacker != nullptr) { - a_TDI.Attacker->Killed(this); + a_TDI.Attacker->Killed(*this, a_TDI.DamageType); } } return true; |