diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-01-16 13:16:47 +0100 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-01-16 15:37:37 +0100 |
commit | 8c12227687454abe5bdd0b8796f84f15fd3817d8 (patch) | |
tree | 6ebcb9d63146b2626311220b69b0c311e2a74c94 /src/ClientHandle.cpp | |
parent | Merge pull request #2875 from LogicParrot/fallDamage (diff) | |
download | cuberite-8c12227687454abe5bdd0b8796f84f15fd3817d8.tar cuberite-8c12227687454abe5bdd0b8796f84f15fd3817d8.tar.gz cuberite-8c12227687454abe5bdd0b8796f84f15fd3817d8.tar.bz2 cuberite-8c12227687454abe5bdd0b8796f84f15fd3817d8.tar.lz cuberite-8c12227687454abe5bdd0b8796f84f15fd3817d8.tar.xz cuberite-8c12227687454abe5bdd0b8796f84f15fd3817d8.tar.zst cuberite-8c12227687454abe5bdd0b8796f84f15fd3817d8.zip |
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r-- | src/ClientHandle.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index 377a84ce9..6585a38b2 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -1640,7 +1640,10 @@ void cClientHandle::HandleUseEntity(UInt32 a_TargetEntityID, bool a_IsLeftClick) } a_Entity->TakeDamage(*m_Me); m_Me->AddFoodExhaustion(0.3); - m_Me->NotifyFriendlyWolves(a_Entity); + if (a_Entity->IsPawn()) + { + m_Me->NotifyFriendlyWolves(static_cast<cPawn*>(a_Entity)); + } return true; } } Callback(m_Player); |