summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Pig.cpp
diff options
context:
space:
mode:
authorp-mcgowan <mickeymcgowan@shaw.ca>2014-12-03 09:26:15 +0100
committerp-mcgowan <mickeymcgowan@shaw.ca>2014-12-03 09:26:15 +0100
commit27185dd3748b04af35a3d17eb5c2c58e826cd9cb (patch)
tree90aff4387acc3c2f7a878b49708d591501be10da /src/Mobs/Pig.cpp
parentMerge pull request #1634 from mc-server/DungeonSpawners (diff)
downloadcuberite-27185dd3748b04af35a3d17eb5c2c58e826cd9cb.tar
cuberite-27185dd3748b04af35a3d17eb5c2c58e826cd9cb.tar.gz
cuberite-27185dd3748b04af35a3d17eb5c2c58e826cd9cb.tar.bz2
cuberite-27185dd3748b04af35a3d17eb5c2c58e826cd9cb.tar.lz
cuberite-27185dd3748b04af35a3d17eb5c2c58e826cd9cb.tar.xz
cuberite-27185dd3748b04af35a3d17eb5c2c58e826cd9cb.tar.zst
cuberite-27185dd3748b04af35a3d17eb5c2c58e826cd9cb.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/Pig.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Mobs/Pig.cpp b/src/Mobs/Pig.cpp
index 50b69e44f..1e4c35acd 100644
--- a/src/Mobs/Pig.cpp
+++ b/src/Mobs/Pig.cpp
@@ -49,17 +49,17 @@ void cPig::OnRightClicked(cPlayer & a_Player)
a_Player.Detach();
return;
}
-
+
if (m_Attachee->IsPlayer())
{
// Another player is already sitting in here, cannot attach
return;
}
-
+
// Detach whatever is sitting in this pig now:
m_Attachee->Detach();
}
-
+
// Attach the player to this pig
a_Player.AttachTo(this);
}
@@ -100,7 +100,7 @@ void cPig::Tick(float a_Dt, cChunk & a_Chunk)
bool cPig::DoTakeDamage(TakeDamageInfo & a_TDI)
-{
+{
if (!super::DoTakeDamage(a_TDI))
{
return false;