summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Sheep.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-07-13 11:11:40 +0200
committerHowaner <franzi.moos@googlemail.com>2014-07-13 11:11:40 +0200
commit9b0b57bcbc9239f65ebfacf9df904d2bb77d2355 (patch)
treea145105510c78df4a60f1282caedb2826efedc98 /src/Mobs/Sheep.cpp
parentMerge branch 'master' into Sounds (diff)
downloadcuberite-9b0b57bcbc9239f65ebfacf9df904d2bb77d2355.tar
cuberite-9b0b57bcbc9239f65ebfacf9df904d2bb77d2355.tar.gz
cuberite-9b0b57bcbc9239f65ebfacf9df904d2bb77d2355.tar.bz2
cuberite-9b0b57bcbc9239f65ebfacf9df904d2bb77d2355.tar.lz
cuberite-9b0b57bcbc9239f65ebfacf9df904d2bb77d2355.tar.xz
cuberite-9b0b57bcbc9239f65ebfacf9df904d2bb77d2355.tar.zst
cuberite-9b0b57bcbc9239f65ebfacf9df904d2bb77d2355.zip
Diffstat (limited to 'src/Mobs/Sheep.cpp')
-rw-r--r--src/Mobs/Sheep.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/Sheep.cpp b/src/Mobs/Sheep.cpp
index e208aa891..019f9e6a2 100644
--- a/src/Mobs/Sheep.cpp
+++ b/src/Mobs/Sheep.cpp
@@ -62,7 +62,7 @@ void cSheep::OnRightClicked(cPlayer & a_Player)
int NumDrops = m_World->GetTickRandomNumber(2) + 1;
Drops.push_back(cItem(E_BLOCK_WOOL, NumDrops, m_WoolColor));
m_World->SpawnItemPickups(Drops, GetPosX(), GetPosY(), GetPosZ(), 10);
- m_World->BroadcastSoundEffect("mob.sheep.shear", POSX_TOINT * 8, POSY_TOINT * 8, POSZ_TOINT * 8, 1.0f, 1.0f);
+ m_World->BroadcastSoundEffect("mob.sheep.shear", GetPosX(), GetPosY(), GetPosZ(), 1.0f, 1.0f);
}
else if ((EquippedItem.m_ItemType == E_ITEM_DYE) && (m_WoolColor != 15 - EquippedItem.m_ItemDamage))
{