summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Sheep.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-09-03 10:29:10 +0200
committermadmaxoft <github@xoft.cz>2014-09-03 10:29:10 +0200
commit1cc65b626462ca3e5aff1619e51450b5d33ff717 (patch)
treeea2586d669fbb609b3694aea685a21c3eb93cca8 /src/Mobs/Sheep.cpp
parentQuick fix for a preprocessor error with clang on OS X (diff)
downloadcuberite-1cc65b626462ca3e5aff1619e51450b5d33ff717.tar
cuberite-1cc65b626462ca3e5aff1619e51450b5d33ff717.tar.gz
cuberite-1cc65b626462ca3e5aff1619e51450b5d33ff717.tar.bz2
cuberite-1cc65b626462ca3e5aff1619e51450b5d33ff717.tar.lz
cuberite-1cc65b626462ca3e5aff1619e51450b5d33ff717.tar.xz
cuberite-1cc65b626462ca3e5aff1619e51450b5d33ff717.tar.zst
cuberite-1cc65b626462ca3e5aff1619e51450b5d33ff717.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/Sheep.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Mobs/Sheep.cpp b/src/Mobs/Sheep.cpp
index 3be688b43..1a82115d2 100644
--- a/src/Mobs/Sheep.cpp
+++ b/src/Mobs/Sheep.cpp
@@ -39,13 +39,13 @@ void cSheep::GetDrops(cItems & a_Drops, cEntity * a_Killer)
{
a_Drops.push_back(cItem(E_BLOCK_WOOL, 1, m_WoolColor));
}
-
- int LootingLevel = 0;
- if (a_Killer != NULL)
- {
- LootingLevel = a_Killer->GetEquippedWeapon().m_Enchantments.GetLevel(cEnchantments::enchLooting);
- }
- AddRandomDropItem(a_Drops, 1, 3 + LootingLevel, IsOnFire() ? E_ITEM_MUTTON : E_ITEM_RAW_MUTTON);
+
+ int LootingLevel = 0;
+ if (a_Killer != NULL)
+ {
+ LootingLevel = a_Killer->GetEquippedWeapon().m_Enchantments.GetLevel(cEnchantments::enchLooting);
+ }
+ AddRandomDropItem(a_Drops, 1, 3 + LootingLevel, IsOnFire() ? E_ITEM_MUTTON : E_ITEM_RAW_MUTTON);
}