summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authortonibm19 <tonibm19@gmail.com>2013-10-28 20:27:05 +0100
committertonibm19 <tonibm19@gmail.com>2013-10-28 20:27:05 +0100
commit5a723454a97fbe00e0a83079493b887be6bd9944 (patch)
treee9509c3f06af707ae90113bae4bad69c62a1c26d /source
parentFixed indentation in tonibm19's code. (diff)
downloadcuberite-5a723454a97fbe00e0a83079493b887be6bd9944.tar
cuberite-5a723454a97fbe00e0a83079493b887be6bd9944.tar.gz
cuberite-5a723454a97fbe00e0a83079493b887be6bd9944.tar.bz2
cuberite-5a723454a97fbe00e0a83079493b887be6bd9944.tar.lz
cuberite-5a723454a97fbe00e0a83079493b887be6bd9944.tar.xz
cuberite-5a723454a97fbe00e0a83079493b887be6bd9944.tar.zst
cuberite-5a723454a97fbe00e0a83079493b887be6bd9944.zip
Diffstat (limited to 'source')
-rw-r--r--source/Mobs/Pig.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/Mobs/Pig.cpp b/source/Mobs/Pig.cpp
index 5427cf35f..0871a38a9 100644
--- a/source/Mobs/Pig.cpp
+++ b/source/Mobs/Pig.cpp
@@ -22,6 +22,10 @@ cPig::cPig(void) :
void cPig::GetDrops(cItems & a_Drops, cEntity * a_Killer)
{
AddRandomDropItem(a_Drops, 1, 3, IsOnFire() ? E_ITEM_COOKED_PORKCHOP : E_ITEM_RAW_PORKCHOP);
+ if (m_bIsSaddled)
+ {
+ a_Drops.push_back(cItem(E_ITEM_SADDLE, 1));
+ }
}