diff options
author | p-mcgowan <mickeymcgowan@shaw.ca> | 2014-11-22 08:58:35 +0100 |
---|---|---|
committer | p-mcgowan <mickeymcgowan@shaw.ca> | 2014-11-22 08:58:35 +0100 |
commit | 793b1012c41edbc07f81510ce1cc9f229628a712 (patch) | |
tree | b28ac2879d417e72dda4e11971506864f7312ce2 /src | |
parent | villagers turn into witches on lightning (diff) | |
download | cuberite-793b1012c41edbc07f81510ce1cc9f229628a712.tar cuberite-793b1012c41edbc07f81510ce1cc9f229628a712.tar.gz cuberite-793b1012c41edbc07f81510ce1cc9f229628a712.tar.bz2 cuberite-793b1012c41edbc07f81510ce1cc9f229628a712.tar.lz cuberite-793b1012c41edbc07f81510ce1cc9f229628a712.tar.xz cuberite-793b1012c41edbc07f81510ce1cc9f229628a712.tar.zst cuberite-793b1012c41edbc07f81510ce1cc9f229628a712.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/Villager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Mobs/Villager.cpp b/src/Mobs/Villager.cpp index 6bf88bd80..963595347 100644 --- a/src/Mobs/Villager.cpp +++ b/src/Mobs/Villager.cpp @@ -37,12 +37,12 @@ bool cVillager::DoTakeDamage(TakeDamageInfo & a_TDI) m_World->BroadcastEntityStatus(*this, esVillagerAngry); } } - + if (a_TDI.DamageType == dtLightning) { Destroy(); - m_World->SpawnMob(GetPosX(), GetPosY(), GetPosZ(), mtWitch); - return true; + m_World->SpawnMob(GetPosX(), GetPosY(), GetPosZ(), mtWitch); + return true; } return true; } |