diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2021-04-10 00:17:01 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2021-04-12 23:35:07 +0200 |
commit | 66c211c33afa1dc99f6dc3a03119ad0b99ce50c5 (patch) | |
tree | babedad40cb07493b7521ac15670e35547dd5fcc /src/Mobs/Wolf.cpp | |
parent | Remove unused GetClassStatic in cWorld (diff) | |
download | cuberite-66c211c33afa1dc99f6dc3a03119ad0b99ce50c5.tar cuberite-66c211c33afa1dc99f6dc3a03119ad0b99ce50c5.tar.gz cuberite-66c211c33afa1dc99f6dc3a03119ad0b99ce50c5.tar.bz2 cuberite-66c211c33afa1dc99f6dc3a03119ad0b99ce50c5.tar.lz cuberite-66c211c33afa1dc99f6dc3a03119ad0b99ce50c5.tar.xz cuberite-66c211c33afa1dc99f6dc3a03119ad0b99ce50c5.tar.zst cuberite-66c211c33afa1dc99f6dc3a03119ad0b99ce50c5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/Wolf.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Mobs/Wolf.cpp b/src/Mobs/Wolf.cpp index 85d2a5a1b..0a3a12ea7 100644 --- a/src/Mobs/Wolf.cpp +++ b/src/Mobs/Wolf.cpp @@ -185,14 +185,12 @@ void cWolf::OnRightClicked(cPlayer & a_Player) SetMaxHealth(20); SetIsTame(true); SetOwner(a_Player.GetName(), a_Player.GetUUID()); - m_World->BroadcastEntityStatus(*this, esWolfTamed); - m_World->BroadcastParticleEffect("heart", static_cast<Vector3f>(GetPosition()), Vector3f{}, 0, 5); + m_World->BroadcastEntityAnimation(*this, EntityAnimation::WolfTamingSucceeds); } else { // Taming failed - m_World->BroadcastEntityStatus(*this, esWolfTaming); - m_World->BroadcastParticleEffect("smoke", static_cast<Vector3f>(GetPosition()), Vector3f{}, 0, 5); + m_World->BroadcastEntityAnimation(*this, EntityAnimation::WolfTamingFails); } } } |