diff options
author | Nounours Heureux <schtroumps31@gmail.com> | 2015-06-02 17:06:18 +0200 |
---|---|---|
committer | Nounours Heureux <schtroumps31@gmail.com> | 2015-06-13 10:00:31 +0200 |
commit | d79f601d5a62f2291615955fac196dbab5caa15a (patch) | |
tree | 888f41c63844b9bd0336f9ef0ed585aa6a635883 /src/Entities/Entity.cpp | |
parent | NetherPortalScanner: Fixed type conversion warnings. (diff) | |
download | cuberite-d79f601d5a62f2291615955fac196dbab5caa15a.tar cuberite-d79f601d5a62f2291615955fac196dbab5caa15a.tar.gz cuberite-d79f601d5a62f2291615955fac196dbab5caa15a.tar.bz2 cuberite-d79f601d5a62f2291615955fac196dbab5caa15a.tar.lz cuberite-d79f601d5a62f2291615955fac196dbab5caa15a.tar.xz cuberite-d79f601d5a62f2291615955fac196dbab5caa15a.tar.zst cuberite-d79f601d5a62f2291615955fac196dbab5caa15a.zip |
Diffstat (limited to 'src/Entities/Entity.cpp')
-rw-r--r-- | src/Entities/Entity.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp index 108f79e82..500204a98 100644 --- a/src/Entities/Entity.cpp +++ b/src/Entities/Entity.cpp @@ -744,6 +744,13 @@ void cEntity::KilledBy(TakeDamageInfo & a_TDI) return; } + // If the victim is a player the hook is handled by the cPlayer class + if (!IsPlayer()) + { + AString emptystring = AString(""); + cRoot::Get()->GetPluginManager()->CallHookKilled(*this, a_TDI, emptystring); + } + // Drop loot: cItems Drops; GetDrops(Drops, a_TDI.Attacker); |