From 4c5d9d38f45ae7c18a3e9799152305757a8a1d2a Mon Sep 17 00:00:00 2001 From: Rorkh Date: Sat, 18 Sep 2021 14:10:31 +0500 Subject: Only nether-native mobs can see through lava --- src/Mobs/ZombiePigman.cpp | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'src/Mobs/ZombiePigman.cpp') diff --git a/src/Mobs/ZombiePigman.cpp b/src/Mobs/ZombiePigman.cpp index 60d5ab9f1..755f585ab 100644 --- a/src/Mobs/ZombiePigman.cpp +++ b/src/Mobs/ZombiePigman.cpp @@ -38,16 +38,6 @@ 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); @@ -62,3 +52,9 @@ void cZombiePigman::KilledBy(TakeDamageInfo & a_TDI) + +void cZombiePigman::SpawnOn(cClientHandle & a_ClientHandle) +{ + Super::SpawnOn(a_ClientHandle); + a_ClientHandle.SendEntityEquipment(*this, 0, cItem(E_ITEM_GOLD_SWORD)); +} -- cgit v1.2.3