diff options
author | Bond-009 <Bond-009@users.noreply.github.com> | 2017-02-25 19:14:08 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2017-02-25 19:14:08 +0100 |
commit | 6fe863c2adf0b13c2625b784000a4dd882c4e046 (patch) | |
tree | a23f2e533479c617734665aa651a9e22f29388db /src/Mobs/ZombiePigman.cpp | |
parent | BlockCrops: Fixed comments and reformatted control flow. (#3576) (diff) | |
download | cuberite-6fe863c2adf0b13c2625b784000a4dd882c4e046.tar cuberite-6fe863c2adf0b13c2625b784000a4dd882c4e046.tar.gz cuberite-6fe863c2adf0b13c2625b784000a4dd882c4e046.tar.bz2 cuberite-6fe863c2adf0b13c2625b784000a4dd882c4e046.tar.lz cuberite-6fe863c2adf0b13c2625b784000a4dd882c4e046.tar.xz cuberite-6fe863c2adf0b13c2625b784000a4dd882c4e046.tar.zst cuberite-6fe863c2adf0b13c2625b784000a4dd882c4e046.zip |
Diffstat (limited to 'src/Mobs/ZombiePigman.cpp')
-rw-r--r-- | src/Mobs/ZombiePigman.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Mobs/ZombiePigman.cpp b/src/Mobs/ZombiePigman.cpp index 39e7ba9c7..2581d3751 100644 --- a/src/Mobs/ZombiePigman.cpp +++ b/src/Mobs/ZombiePigman.cpp @@ -2,6 +2,7 @@ #include "ZombiePigman.h" #include "../World.h" +#include "ClientHandle.h" @@ -37,6 +38,16 @@ void cZombiePigman::GetDrops(cItems & a_Drops, cEntity * a_Killer) +void cZombiePigman::SpawnOn(cClientHandle & a_ClientHandle) +{ + super::SpawnOn(a_ClientHandle); + a_ClientHandle.SendEntityEquipment(*this, 0, cItem(E_ITEM_GOLD_SWORD)); +} + + + + + void cZombiePigman::KilledBy(TakeDamageInfo & a_TDI) { super::KilledBy(a_TDI); |