summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2016-01-16 13:16:47 +0100
committerLogicParrot <LogicParrot@users.noreply.github.com>2016-01-16 15:37:37 +0100
commit8c12227687454abe5bdd0b8796f84f15fd3817d8 (patch)
tree6ebcb9d63146b2626311220b69b0c311e2a74c94 /src/ClientHandle.cpp
parentMerge pull request #2875 from LogicParrot/fallDamage (diff)
downloadcuberite-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.cpp5
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);