summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Villager.cpp
diff options
context:
space:
mode:
authorp-mcgowan <mickeymcgowan@shaw.ca>2014-11-22 08:58:35 +0100
committerp-mcgowan <mickeymcgowan@shaw.ca>2014-11-22 08:58:35 +0100
commit793b1012c41edbc07f81510ce1cc9f229628a712 (patch)
treeb28ac2879d417e72dda4e11971506864f7312ce2 /src/Mobs/Villager.cpp
parentvillagers turn into witches on lightning (diff)
downloadcuberite-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 'src/Mobs/Villager.cpp')
-rw-r--r--src/Mobs/Villager.cpp6
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;
}